Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a ruby application that runs on a server with multiple IP addresses and mutliple vhosts. Here is the configuration of the problematic virtual host:


  DocumentRoot /var/www/sites/example/current/public
  <Directory /var/www/sites/example/current/public>
    AllowOverride all
    Options -MultiViews

  ErrorLog /var/log/httpd/example_error_log
  CustomLog /var/log/httpd/example_access_log common

  RailsEnv production
  RackEnv production

When I pull up the Ruby on Rails application works correctly.

On the other hand just gives me Not Found: /

I'm fairly certain the correct vhost is getting used because produces a 404 in the correct log file.

I've tried adding logging to the Passenger config and it seems to indicate that Passenger is getting the request.

Note: I can't redirect to realname is accessed using a CDN, whereas alias is directly accessed.

Anyone have any ideas why this isn't working? I've been banging my head for days and I've got a similar configuration in QA that works as expected.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Turns out the problem was this Apache directive:

UseCanonicalName On

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.