Apache IP Vhost and Passenger

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 zzzzrailsvhost.conf in which I put these lines:

# 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:

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

0 Replies

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct