Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have managed to install Apache2, Passenger and Ruby on Rails on a VPS machine with CentOS 5.5. To check everything is okay, I run in that machine links http://localhost, and the page is displayed correctly. This application is stored in /var/www/webapp.

However if I try to visit this page from outside. E.g.: http://212.227.XYZ.ZZ, I get the Apache welcome page located in /var/www/vhosts/default/htdocs/index.html.

This is part of my /etc/httpd/config/httpd.conf:

DocumentRoot "/var/www/"
LoadModule passenger_module /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.2/ext/apache2/
PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.2
PassengerRuby /usr/local/bin/ruby

<VirtualHost *:80>
   ServerName 212.227.XYZ.ZZ
   DocumentRoot /var/www/webapp/public
   <Directory /var/www/webapp/public>
      AllowOverride all
      Options MultiViews

I have no idea why if I query the server from outside then I get different webpages. I have looked for config files in /etc/httpd/conf/ but I haven't found any other config file but httpd.conf.

I have tried as well to put this webapp in /var/www/vhosts/default/htdocs/, however I get the error: "Rails application failed to start properly".

How can I solve this problem? It's driving me crazy.

Thanks a lot.

share|improve this question
up vote 0 down vote accepted

Solved. I found the other config files which where overriding this behaviour. They are located in /etc/httpd/conf.d/.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.