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

First things first. I'm a developer, not a server administrator. So I'm not to technical when it comes to servers.

I've just ordered a VPS and I'm trying to set up my first website. I'm running CentOS 5 and I'm using Plesk Parallels 9.3 to manage my server.

By default /httpdocs is the location for my website. I was thinking I could make one folder for each website I want to host, so it would be something like this:

/httpdocs/folder1 --> site 1 /httpdocs/folder2 --> site 2

and so on.

My problem is, how do I tell the server which folder to use for which site?

share|improve this question

1 Answer 1

Plesk doesn't work that way, at least not easily.
Look into using Domains->yourdomainname.com->Subdomains and set them up inside there.
The DocumentRoot will be /var/www/vhosts/domainname.com/subdomains/blah/httpdocs - alternatively you can setup the subdomain as a new domain inside Plesk, and it will then live under /var/www/vhosts/blah.domainname.com/httpdocs

share|improve this answer
    
Crap! Does that mean that all my customers will have to be customer1.mysite.com? I would realy liek it to be www.customer.com and just point that site to the correct directory. What is the best way to configure my VPS to host multiple customers? I will also be using Wordpress Multisite where each website will be sub1.mysite.com, and then a WP plugin will remap customer.com to syb1.mysite.com. –  Steven Sep 24 '10 at 16:23
    
Sorry but I really don't understand what you're trying to do. If you want each customer to have their own domain name, then follow the approach describe above of adding a new domain for it. If you want them as subdomains, add them as a subdomain. If you want them as folders, the way Plesk works, they'll have to be domain.com/folder. It is possible to setup symbolic links and house them elsewhere, but quite difficult with Plesk –  James Lawrie Sep 24 '10 at 17:23
    
I figured it out. All I needed to do, was to create a vhost.config file, and there I just changed the DIR path for the site. –  Steven Sep 25 '10 at 10:39
    
I thought you could only override tags inside a Document directive in there. Guess you learn something every day. Did you run websrvmng afterwards? –  James Lawrie Sep 25 '10 at 11:04

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.