Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Jul 01, 2010 10:21 am 
Offline

Joined: Thu Jul 01, 2010 9:57 am
Posts: 1
Hello,

I'm trying to setup rails/passenger/apache2 to work on CentOS 5.2 (the host is managed using plesk 9.5.2).

I've installed a fresh passenger on apache to deploy rails apps.
While the app is not finished I'd like to test it on the server with just the server's IP address on a special port say 3001.
So after the passenger install was done I added a new file in the /etc/httpd/conf.d/ named zzzz_rails_vhost.conf in which I put these lines:

Code:

# Rails
LoadModule passenger_module /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/ext/apache2/mod_passenger.so
PassengerRoot /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15
PassengerRuby /opt/ruby-enterprise-1.8.7-2010.02/bin/ruby

NameVirtualHost X.Y.Z.161:3001

<VirtualHost X.Y.Z.161:3001>

   DocumentRoot /var/www/rails/testapp/public
   UseCanonicalName Off

   CustomLog /var/log/rails/access_log railslog
   ErrorLog /var/log/rails/error_log

   <Directory /var/www/rails/testapp/public>
      AllowOverride all
      Options -MultiViews
   </Directory>

</VirtualHost>





After a restart of apache I tried to access the rails app in a browser with no success (the browser could not connect to the address) at http://X.Y.Z.161:3001
And netstat shows nothing on port 3001.

Here is the output of apachectl -S:
Code:
VirtualHost configuration:
X.Y.Z.161:80     is a NameVirtualHost
         default server default (/etc/httpd/conf.d/zz010_psa_httpd.conf:47)
         port 80 namevhost default (/etc/httpd/conf.d/zz010_psa_httpd.conf:47)
         port 80 namevhost lists (/etc/httpd/conf.d/zz010_psa_httpd.conf:101)
         port 80 namevhost atmail.webmail (/etc/httpd/conf.d/zzz_atmail_vhost.conf:1)
         port 80 namevhost horde.webmail (/etc/httpd/conf.d/zzz_horde_vhost.conf:1)
X.Y.Z.161:443    is a NameVirtualHost
         default server default-X-Y-Z-161 (/etc/httpd/conf.d/zz010_psa_httpd.conf:78)
         port 443 namevhost default-X-Y-Z-161 (/etc/httpd/conf.d/zz010_psa_httpd.conf:78)
         port 443 namevhost lists (/etc/httpd/conf.d/zz010_psa_httpd.conf:121)
         port 443 namevhost atmail.webmail (/etc/httpd/conf.d/zzz_atmail_vhost.conf:48)
         port 443 namevhost horde.webmail (/etc/httpd/conf.d/zzz_horde_vhost.conf:41)
X.Y.Z.161:3001   is a NameVirtualHost
         default server THE-FQHN (/etc/httpd/conf.d/zzzz_rails_vhost.conf:8)
         port 3001 namevhost THE-FQHN (/etc/httpd/conf.d/zzzz_rails_vhost.conf:8)
wildcard NameVirtualHosts and _default_ servers:
_default_:443          THE-FQHN (/etc/httpd/conf.d/ssl.conf:81)
Syntax OK



So my question is. What should I do in order to have a IP vhost working with passenger on this setup ?

Any help appreciated,
Thanks

Thierry


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group