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 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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? On Thu, May 3, 2012 at 2:45 PM, Ajit Teli <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> 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 > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- - Aziz M. Bookwala -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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? > > On Thu, May 3, 2012 at 2:45 PM, Ajit Teli <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > >> Ajit >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> > > > -- > - Aziz M. BookwalaHi Aziz, Thanks for your reply. My Apache virtual-host file looks as below: ------------------------------------------------------------------- <VirtualHost *:80> ServerName blogapp.mytvsxbass.com DocumentRoot /home/ajit/PROJECTS/mytvs/xbass/public RailsEnv development <Directory /home/ajit/PROJECTS/mytvs/xbass/public/> AllowOverride None Order allow,deny Allow from all Options FollowSymLinks -MultiViews </Directory> XSendFile On XSendFilePath "/home/ajit/PROJECTS/mytvs/xbass/" </VirtualHost> -------------------------------------------------------------------- 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 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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. On Thu, May 3, 2012 at 4:55 PM, Ajit Teli <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> 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? > > > > On Thu, May 3, 2012 at 2:45 PM, Ajit Teli <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > > > >> 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: > ------------------------------------------------------------------- > <VirtualHost *:80> > ServerName blogapp.mytvsxbass.com > DocumentRoot /home/ajit/PROJECTS/mytvs/xbass/public > RailsEnv development > <Directory /home/ajit/PROJECTS/mytvs/xbass/public/> > AllowOverride None > Order allow,deny > Allow from all > Options FollowSymLinks -MultiViews > </Directory> > XSendFile On > XSendFilePath "/home/ajit/PROJECTS/mytvs/xbass/" > </VirtualHost> > -------------------------------------------------------------------- > 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 > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- - Aziz M. Bookwala -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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. > > On Thu, May 3, 2012 at 4:55 PM, Ajit Teli <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > >> >> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> > > > -- > - Aziz M. BookwalaFy 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 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 3 May 2012 13:10, Ajit Teli <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> 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.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. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
> 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 80Your 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. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.