Hosting application on private network.

Hi,

  I have a Ruby on Rails application. I am able to run it in my local
system using Apache2 server. I would like to host my application so that
all the systems in the private network 192.168.3.0/24 should be able to
access the web-application. My system private-ip is 192.168.3.57.

Please help me what all configurations do I need to do.

Thank you
Ajit

Hey Ajit

This seems like a simple enough thing to do. Have you looked around at what you need to do? Are there any specific problems you are facing?

Aziz Bookwala wrote in post #1059404:

Hey Ajit

This seems like a simple enough thing to do. Have you looked around at
what
you need to do? Are there any specific problems you are facing?

Ajit
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

--
- Aziz M. Bookwala

Hi Aziz,
Thanks for your reply.
   My Apache virtual-host file looks as below:

I dont have too much experience with Apache, but I think this happens because Apache will serve the application on the blogapp.mytvsxbass.com domain. If this is the case, you could add a mapping for the domain and ip in your /etc/hosts and it should work. You could also tell apache to serve on the ip, but I cant advise you on how to do that.

Aziz Bookwala wrote in post #1059415:

I dont have too much experience with Apache, but I think this happens
because Apache will serve the application on the
blogapp.mytvsxbass.comdomain. If this is the case, you could add a
mapping for the domain and ip
in your /etc/hosts and it should work. You could also tell apache to
serve
on the ip, but I cant advise you on how to do that.

>> For more options, visit this group at
  My Apache virtual-host file looks as below:
</Directory>
The requested URL /users/login was not found on this server.
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

--
- Aziz M. Bookwala

Fy final idea is to host the application worldwide. All the http
requests to public ip (122.166.7.181) with port 8050 should be directed
to my system and users should be able to browse the app. I have
configured the router for port-forwarding. But it is not working.
If you know how to host the web application then suggest me.

--Thanks
  Ajit

This sounds like an Apache/router issue, not a Rails issue. If you can
get a flat, HTML-only site working internally, then a Rails app should
be able to slot into the configuration.

I am able to run this app in my system using the url
"http://blogapp.mytvsxbass.com/users/login". But I would like to open
this application on another machine with url
"http://192.168.3.57/users/login". The error I am getting in the browser
is:
Not Found
The requested URL /users/login was not found on this server.
Apache/2.2.20 (Ubuntu) Server at 192.168.3.57 Port 80

Your Apache configuration will only serve your rails app when the
request has the domain "blogapp.mytvsxbass.com" in the URL (the
ServerName directive). This works on your local machine because you
have probably set up your hosts file to map blogapp.mytvsxbass.com to
localhost. You can perform the same configuration on the other local
machines if you wish, mapping that domain to the ip address of the
machine.

Alternatively, if you would rather have the app respond to a URL with
the IP address instead, you will have to set up your Apache config to
serve the rails app as the default site.