I want to point 2 URLs to the same rails app. Seems like it would be easy but it's not working!
The existing setup looks like this:
<VirtualHost *:80> DocumentRoot /home/some/path ServerName long_foo_name.com RewriteEngine On ProxyRequests Off ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000/ ProxyPreserveHost on AccessFileName .htaccess <Proxy *> Order deny,allow Allow from all </Proxy> </VirtualHost>
I copied/pasted this and modified servername to the new servername (let's say "foo.com"). When I try going to foo.com, though, I get the default Fedora Test page. Apache error log shows "Directory index forbidden by Options directive" and rails logs aren't showing that the request is hitting rails.
The one caveat that may or may not be related is this. The second domain (in this case "foo.com") is a "leased" URL. Meaning. I don't actually own it and it's leased to me by the owner. When I ping the domain, the IP that's returned is actually different from my server.
But request to this domain ARE hitting my server (as shown by apache access logs). So it seems that requests to this domain are being proxied by their servers.
Could this proxying affect how Apache is handling the request?