Welcome Guest | Login

parked domains question

i noticed that when using the parked domain provided by hostingrails as a sneak peak initially, the parked domain remains in the url at top.

So for example, if the parked domain provided to me by hostingrails was "www.providedbyhostingrails.com" and I typed in that url and went there, the url remains as "www.providedbyhostingrails.com".

When I added another parked domain, let's say, "www.newparkeddomain.com", and i used that url, it redirected to my other url "www.example.com". Is there any way to prevent this?

2007-02-26 01:27 PM

Double check that no Rewrite rules got setup - check the .htaccess in the DocumentRoot of the vhost in question (i.e. for www.example.com, www.providedbyhostingrails.com, and  www.newparkeddomain.com - which you intend to have the same DocumentRoot, right?)

2007-02-26 02:49 PM

hmm, i'm a bit confused. would DocumentRoot just be the public_html folder of my actual application? do all of these domains currently have different DocumentRoots, even after they've been parked on top of www.example.com?

also in this article - http://www.hostingrails.com/forums/deployment_troubleshooting_thread/145

is the actual virtual host entry accessible by us? is the entry in the http.conf file (if so where is that file?).

Thanks!

2007-02-27 02:15 AM

Hi there - sorry - the vhost entry is not accessible to you for security reasons (yes its in the httpd.conf file).  

Parked domains, as the article discussed, add a ServerAlias to the vhost so that domain will be served by the files in the vhost's DocumentRoot  

The DocumentRoot for the main domain of an account is /home/username/public_html

The DocumentRoot for an addon domain is usually /home/username/public_html/addon

I hope that helps clarify the issue... let me know if you have any other questions.

Cheers,
~William

2007-02-27 04:45 AM

strange, there was a folder for my add-on domain (/home/username/public_html/addon), but now it's gone. not sure what i did to delete it. either way, when the folder did exist, i checked the .htaccess file and it was empty .

i then checked the .htaccess file under /home/username/public_html and it did have a few rewrite rules, but nothing that seemed to jump out as applying only to my addon domain. just in case though, i commented out all the rewrite rules except for the one for fastcgi/rails.

after doing this however, my addon domain still redirected to my main domain (and it still does now, despite there not being a folder for the addon domain in /home/username/public_html).

2007-02-27 01:01 PM

ok, even stranger is that it now works exactly like i want it to! not sure what happened though..

2007-02-27 02:03 PM

ok, i figured it out, so on firefox apparently, redirection and the dns->ipaddress mappings get cached i guess. i hadn't cleared the cache since making my addon domain a parked domain, so it was still redirecting.

2007-02-28 03:47 AM


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