I have a working rails application that I want to be served through another domain name. So I modified the VirtualHost by adding it as a ServerAlias:
<VirtualHost *:80> DocumentRoot /home/my/app/public ServerName long_server_name.com ServerAlias short_name.com RewriteEngine On ProxyRequests Off ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000/ ProxyPreserveHost on <Proxy *> Order deny,allow Allow from all </Proxy> </VirtualHost>
But, for some odd reason, when I go to short_name.com it gives me the Fedora test page.
I'm able to find documents under /public if i go to them directly (eg. short_name.com/somepage.html). But the requests are not being handled by Rails. Going to the root path should redirect to the login (by rails).
Any ideas? How can I debug what's going on?
(A possible unrelated caveat: 'short_name.com' is a URL that's being leased from someone else as they are the owner.)