Welcome Guest | Login

Add-on Domain Improperly Redirecting?

Hi,

I've registered addon.tld and updated its DNS entries to point to my ns*.hostingrails.com name servers. I've also set up addon.tld in cPanel as an add-on domain to my real domain primary.tld, which is a Rails app.

But navigating to addon.tld is redirecting to http://www.primary.tld/addon.tld . This is causing Rails to fail with a 404. Technically, the files should be served from ~/public_html/addon.tld, but more importantly, I shouldn't be redirected away from addon.tld in my browser, should I?

Thanks for any help!

2008-08-19 11:49 AM

Got it! It was because primary.tld was a Rails app that it wasn't serving files from that subdirectory. Rails was intercepting the request like it's supposed to.

I simply changed the add-on domain to serve files from ~/addon.tld/ and everything was fine!

2008-08-19 11:56 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.