Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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