• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Subdomain Folders and Redirect

A

adstock

Guest
Scratching my Head on this one.

A Client has 5 Domains, he wants them all in one domain web space, because there are sharing the Same DB and image files, there is one main site.
Domain1.com and 4 child sites domain2,domain3, domain4 and domain5
he wants each of the domains 2, 3, 4 and 5 in there own directory under httpdocs.

Domain2 /httpdocs/domain2
domain3 /httpdocs/domain3

So I have created through the Control panel the webspace for Domain1 and added the other four domains as subdomains.
I have created the all the sub-directories under httpdocs.

I now have a http.include file which looks alright, it has the domain, and all the other domains as alias.

So I thought a vhost.conf would sort my problem out and I could create a vhost.conf that looked something like this

<Directory /var/ww/vhsot/domain1/httpdocs/domain2>
ServerAlias www.domain2.com
ServerAlias domain2.com
</Directory>

However after issuing the websrvmng command and restarting apache I get the following error.

Starting httpd: Syntax error on line 2 of /var/www/vhosts/domain1/conf/vhost.conf:
ServerAlias not allowed here

So if I cannot use the Serveralias command in vhost.conf and we are not meant to edit the http.include file, then I am not sure how to do this. any help gratefully accepted
 
Back
Top