Been trying to get Passenger installed and setup to run a rails app.
Everytime I goto eaa.mysite.com in Firefox the web browser goes out to
the Internet instead of serving up the website. Why does this occur?
Below is part of the configuration for apache2.conf:
=======================================================
Setup a virtual host for the rails apps to run in.
<VirtualHost *:80>
# ServerName www.myhost.com
ServerName eaa.mysite.com
DocumentRoot /var/rails-apps/eaa/public
#PassengerSpawnMethod conservative
RailsSpawnMethod smart
#RailsEnv production
RailsEnv development
#<Directory /var/rails-apps>
# Relax Apache security settings.
#AllowOverride all
# MultiViews must be turned off.
#Options -MultiViews
#
Had a look at the error log for Apache and didn’t find anything
related with trying to load the rails app. Below are the contents of
that log:
=======================================================
[Mon May 28 08:05:06 2012] [notice] Apache/2.2.22 (Ubuntu) PHP/
5.3.10-1ubuntu3.1 with Suhosin-Patch Phusion_Passenger/3.0.12
configured – resuming normal operations
[Mon May 28 08:16:28 2012] [notice] Graceful restart requested, doing
restart
[Mon May 28 08:16:28 2012] [notice] Apache/2.2.22 (Ubuntu) PHP/
5.3.10-1ubuntu3.1 with Suhosin-Patch Phusion_Passenger/3.0.12
configured – resuming normal operations
[Mon May 28 08:20:40 2012] [notice] caught SIGTERM, shutting down
[Mon May 28 08:20:41 2012] [notice] Apache/2.2.22 (Ubuntu) PHP/
5.3.10-1ubuntu3.1 with Suhosin-Patch Phusion_Passenger/3.0.12
configured – resuming normal operations
[Mon May 28 08:21:03 2012] [error] [client 127.0.0.1] File does not
exist: /var/www/favicon.ico
[Mon May 28 08:21:03 2012] [error] [client 127.0.0.1] File does not
exist: /var/www/favicon.ico
[Mon May 28 08:30:37 2012] [notice] caught SIGTERM, shutting down
[Mon May 28 08:30:38 2012] [notice] Apache/2.2.22 (Ubuntu) PHP/
5.3.10-1ubuntu3.1 with Suhosin-Patch Phusion_Passenger/3.0.12
configured – resuming normal operations
[Mon May 28 08:41:51 2012] [notice] caught SIGTERM, shutting down
[Mon May 28 08:41:52 2012] [notice] Apache/2.2.22 (Ubuntu)
Phusion_Passenger/3.0.12 configured – resuming normal operations
[Mon May 28 08:52:47 2012] [notice] caught SIGTERM, shutting down
[Mon May 28 08:52:48 2012] [notice] Apache/2.2.22 (Ubuntu)
Phusion_Passenger/3.0.12 configured – resuming normal operations
[Mon May 28 08:58:16 2012] [notice] caught SIGTERM, shutting down
[Mon May 28 08:58:17 2012] [notice] Apache/2.2.22 (Ubuntu)
Phusion_Passenger/3.0.12 configured – resuming normal operations
[Mon May 28 09:05:27 2012] [notice] caught SIGTERM, shutting down
[Mon May 28 09:05:28 2012] [notice] Apache/2.2.22 (Ubuntu)
Phusion_Passenger/3.0.12 configured – resuming normal operations
[Mon May 28 09:17:30 2012] [notice] caught SIGTERM, shutting down
[Mon May 28 09:17:31 2012] [notice] Apache/2.2.22 (Ubuntu)
Phusion_Passenger/3.0.12 configured – resuming normal operations
[Mon May 28 09:19:16 2012] [notice] caught SIGTERM, shutting down
[Mon May 28 09:19:17 2012] [notice] Apache/2.2.22 (Ubuntu)
Phusion_Passenger/3.0.12 configured – resuming normal operations
[Mon May 28 09:23:57 2012] [notice] caught SIGTERM, shutting down
[Mon May 28 09:23:58 2012] [notice] Apache/2.2.22 (Ubuntu)
Phusion_Passenger/3.0.12 configured – resuming normal operations
On Sunday, 27 May 2012 17:33:43 UTC-4, Nick Apperley wrote:
# ServerName www.myhost.com
ServerName eaa.mysite.com
For this to work locally, you’ll need to point DNS for eaa.mysite.com at
your local IP. Adding a line like this to /etc/hosts should do the
trick:
127.0.0.1 eaa.mysite.com
–Matt J.
You can also look into pow http://pow.cx/, so you don’t have to worry
about
configuring your sites at all.
Just install it, install the powder gem, go to your app folder and type
‘powder link’ and your site will be available at http://yourappname.dev
pretty slick.