Tried to access a Rails app on the local PC by entering in eaa via Chrome but ended up with a web search instead. How do I access the Rails app locally? Below is the Apache config for the application: *<VirtualHost *:80> * * ServerName eaa* * RailsEnv production* * DocumentRoot /var/rails-apps/eaa/public* * <Directory /var/rails-apps/eaa/public> * * # Relax Apache security settings .* * AllowOverride all* * # MultiViews must be turned off .* * Options -MultiViews* * </Directory>* * * * ErrorLog ${APACHE_LOG_DIR}/error.log* *</VirtualHost>* Had a look through the Apache error log and only found the following info message: *[Thu Feb 14 14:36:41 2013] [notice] Apache/2.2.22 (Ubuntu) Phusion_Passenger/3.0.19 configured -- resuming normal operations* -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/C5jwDztGnFkJ. For more options, visit https://groups.google.com/groups/opt_out.
Do you have eaa mapped to localhost in your /etc/hosts file? On Wed, Feb 13, 2013 at 7:39 PM, Nick Apperley <napperley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Tried to access a Rails app on the local PC by entering in eaa via Chrome > but ended up with a web search instead. How do I access the Rails app > locally? Below is the Apache config for the application: > > <VirtualHost *:80> > ServerName eaa > RailsEnv production > DocumentRoot /var/rails-apps/eaa/public > <Directory /var/rails-apps/eaa/public> > # Relax Apache security settings . > AllowOverride all > # MultiViews must be turned off . > Options -MultiViews > </Directory> > > ErrorLog ${APACHE_LOG_DIR}/error.log > </VirtualHost> > > > > Had a look through the Apache error log and only found the following info > message: > > [Thu Feb 14 14:36:41 2013] [notice] Apache/2.2.22 (Ubuntu) > Phusion_Passenger/3.0.19 configured -- resuming normal operations > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/C5jwDztGnFkJ. > For more options, visit https://groups.google.com/groups/opt_out. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Don''t have an entry for eaa in the hosts file. Tried accessing the website after adding the entry but ended up with the same result. On Thursday, February 14, 2013 6:10:02 PM UTC+13, tamouse wrote:> > Do you have eaa mapped to localhost in your /etc/hosts file? > > On Wed, Feb 13, 2013 at 7:39 PM, Nick Apperley <napp...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org<javascript:>> > wrote: > > Tried to access a Rails app on the local PC by entering in eaa via > Chrome > > but ended up with a web search instead. How do I access the Rails app > > locally? Below is the Apache config for the application: > > > > <VirtualHost *:80> > > ServerName eaa > > RailsEnv production > > DocumentRoot /var/rails-apps/eaa/public > > <Directory /var/rails-apps/eaa/public> > > # Relax Apache security settings . > > AllowOverride all > > # MultiViews must be turned off . > > Options -MultiViews > > </Directory> > > > > ErrorLog ${APACHE_LOG_DIR}/error.log > > </VirtualHost> > > > > > > > > Had a look through the Apache error log and only found the following > info > > message: > > > > [Thu Feb 14 14:36:41 2013] [notice] Apache/2.2.22 (Ubuntu) > > Phusion_Passenger/3.0.19 configured -- resuming normal operations > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "Ruby on Rails: Talk" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to rubyonrails-ta...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. > > To post to this group, send email to rubyonra...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<javascript:>. > > > To view this discussion on the web visit > > https://groups.google.com/d/msg/rubyonrails-talk/-/C5jwDztGnFkJ. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/n5tOYLH97GYJ. For more options, visit https://groups.google.com/groups/opt_out.
Hmm.. not sure then. This is a line out of my /etc/hosts file: 192.168.1.10 tamwiki.caesar.local tamwiki.caesar tamwiki <VirtualHost *:80> ServerName tamwiki.caesar.local ServerAlias tamwiki ServerAdmin tamara@localhost DocumentRoot /var/www/vhosts/tamwiki <Directory /var/www/vhosts/tamwiki> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from 192.168 allow from 127.0.0.1 </Directory> </VirtualHost> With that, I can plug "http://tamwiki", "http://tamwiki.caesar", or "http://tamwiki.caesar.local" into the address bar and have it work. On Wed, Feb 13, 2013 at 11:21 PM, Nick Apperley <napperley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Don''t have an entry for eaa in the hosts file. Tried accessing the website > after adding the entry but ended up with the same result. > > > > On Thursday, February 14, 2013 6:10:02 PM UTC+13, tamouse wrote: >> >> Do you have eaa mapped to localhost in your /etc/hosts file? >> >> On Wed, Feb 13, 2013 at 7:39 PM, Nick Apperley <napp...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > Tried to access a Rails app on the local PC by entering in eaa via >> > Chrome >> > but ended up with a web search instead. How do I access the Rails app >> > locally? Below is the Apache config for the application: >> > >> > <VirtualHost *:80> >> > ServerName eaa >> > RailsEnv production >> > DocumentRoot /var/rails-apps/eaa/public >> > <Directory /var/rails-apps/eaa/public> >> > # Relax Apache security settings . >> > AllowOverride all >> > # MultiViews must be turned off . >> > Options -MultiViews >> > </Directory> >> > >> > ErrorLog ${APACHE_LOG_DIR}/error.log >> > </VirtualHost> >> > >> > >> > >> > Had a look through the Apache error log and only found the following >> > info >> > message: >> > >> > [Thu Feb 14 14:36:41 2013] [notice] Apache/2.2.22 (Ubuntu) >> > Phusion_Passenger/3.0.19 configured -- resuming normal operations-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Managed to access the website by adding *Listen 1025* to the Apache config file, and adding an entry to the hosts file. Have used a different port for the website (in its VirtualHost entry). Port 80 is already taken by the default website. Using a different IP address only works for a website if it is accessed remotely, not locally (on the same PC). On Thursday, February 14, 2013 6:45:20 PM UTC+13, tamouse wrote:> > Hmm.. not sure then. This is a line out of my /etc/hosts file: > > 192.168.1.10 tamwiki.caesar.local tamwiki.caesar tamwiki > > <VirtualHost *:80> > ServerName tamwiki.caesar.local > ServerAlias tamwiki > ServerAdmin tamara@localhost > > DocumentRoot /var/www/vhosts/tamwiki > <Directory /var/www/vhosts/tamwiki> > Options Indexes FollowSymLinks MultiViews > AllowOverride All > Order allow,deny > allow from 192.168 > allow from 127.0.0.1 > </Directory> > </VirtualHost> > > With that, I can plug "http://tamwiki", "http://tamwiki.caesar", or > "http://tamwiki.caesar.local" into the address bar and have it work. > > > On Wed, Feb 13, 2013 at 11:21 PM, Nick Apperley <napp...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org<javascript:>> > wrote: > > Don''t have an entry for eaa in the hosts file. Tried accessing the > website > > after adding the entry but ended up with the same result. > > > > > > > > On Thursday, February 14, 2013 6:10:02 PM UTC+13, tamouse wrote: > >> > >> Do you have eaa mapped to localhost in your /etc/hosts file? > >> > >> On Wed, Feb 13, 2013 at 7:39 PM, Nick Apperley <napp...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > >> > Tried to access a Rails app on the local PC by entering in eaa via > >> > Chrome > >> > but ended up with a web search instead. How do I access the Rails app > >> > locally? Below is the Apache config for the application: > >> > > >> > <VirtualHost *:80> > >> > ServerName eaa > >> > RailsEnv production > >> > DocumentRoot /var/rails-apps/eaa/public > >> > <Directory /var/rails-apps/eaa/public> > >> > # Relax Apache security settings . > >> > AllowOverride all > >> > # MultiViews must be turned off . > >> > Options -MultiViews > >> > </Directory> > >> > > >> > ErrorLog ${APACHE_LOG_DIR}/error.log > >> > </VirtualHost> > >> > > >> > > >> > > >> > Had a look through the Apache error log and only found the following > >> > info > >> > message: > >> > > >> > [Thu Feb 14 14:36:41 2013] [notice] Apache/2.2.22 (Ubuntu) > >> > Phusion_Passenger/3.0.19 configured -- resuming normal operations >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/VDoL51rs2eIJ. For more options, visit https://groups.google.com/groups/opt_out.
On Thursday, February 14, 2013 5:31:38 PM UTC-5, Nick Apperley wrote:> > Managed to access the website by adding *Listen 1025* to the Apache > config file, and adding an entry to the hosts file. Have used a different > port for the website (in its VirtualHost entry). Port 80 is already taken > by the default website.You can serve multiple sites from the same IP address and port if Apache is set up correctly. My virtual hosts file has this at the top: # Use name-based virtual hosting. NameVirtualHost *:80 Also, I don''t think you want to have a single-component domain name. For example, if the site would eventually go live at eea.com, then you could set up your dev site with servername of eea.local, so that once the site is live you can access both the live site and your local site without having to change your hosts file. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/SuLtpqPc7skJ. For more options, visit https://groups.google.com/groups/opt_out.
On Fri, Feb 15, 2013 at 6:41 AM, Jim <jimcfl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> You can serve multiple sites from the same IP address and port if Apache is > set up correctly.Or you can eliminate a whole lot of configuration nonsense by using Pow (http://pow.cx/) for development :-) and simply access your app locally as e.g. http://eaa.dev/ FWIW, -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org http://about.me/hassanschroeder twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.