I am trying to migrate a site to a new server (centOS5 and plesk 9.2.1)

I would like to get the site running on a subdomain before pointing the root domain to the new server.

In plesk I created domain.com and the subdomain setup.domain.com and then I pointed setup.domain.com to my new server. That works.

plesk setup folders as follows domain.com/ domain.com/httpdocs/ domain.com/subdomains/ domain.com/subdomains/setup/ domain.com/subdomians/setup/httpdocs

At the moment, setup.domain.com shows the index file in domain.com/subdomains/setup/httpdocs

I would like setup.domain.com to serve the files out of domain.com/httpdocs

Here is what I have tried. - using a server alias in plesk instead of a subdomain - using a subdomain, then modifying setup.domain.com's DocumentRoot in httpd.include to be domain.com/httpdocs and restarting apache

I've searched everywhere, is there an easy way to achieve this?

link|improve this question

feedback

1 Answer

up vote 3 down vote accepted

I figured it out. It was actually quite easy. I am just dumb. I'm posting my "solution" (if you can call it that) in case another noob is having the same problem.

I created the DomainAlias setup.domain.com and enabled the local DNS service. Done.

Note: When I created the domain alias, I disabled synchronizing the DNS zone, because I didn't want the subdomain (setup.domain.com) to be pointed to the old server, which is currently serving domain.com

link|improve this answer
+1 for following up your own question with an answer for future people with this problem – Mark Henderson Jul 30 '09 at 1:30
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.