Re: Running Rails App Via Passenger

tamouse mailing lists
Thu, 14 Feb 2013 05:45:20 -0000

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