D
dataneger
Guest
Dear Forum users,
I could not find any post regarding my question so i started a new thread.
I have the following problem:
I have a multiple domains and i want them to use the same codebase from 1 domain.
I made a Vhost.conf because i though i could add <VirtualHost> configs there.
But if i do that Plesk says "Can't containt Virtualhost inside of a Virtualhost". Logic because that file is included in httpd.conf inside a <Virtualhost> .
I want something like:
But that isnt allowed .... when i delete the Virtualhost brackets then Plesk/Apache gets confused with the DocumentRoot (Duh)
But how do i fix this ... i cant edit the httpd.conf because Plesk overwrites that file everytime. and i am stuck editing this in vhost.conf.
Somebody please help me out here
Thx
I could not find any post regarding my question so i started a new thread.
I have the following problem:
I have a multiple domains and i want them to use the same codebase from 1 domain.
I made a Vhost.conf because i though i could add <VirtualHost> configs there.
But if i do that Plesk says "Can't containt Virtualhost inside of a Virtualhost". Logic because that file is included in httpd.conf inside a <Virtualhost> .
I want something like:
<VirtualHost IPort>
ServerAlias Domain.com
ServerName Domain.com
Documentroot /var/www/vhosts/domain1.com/httpdocs/
</VirtualHost>
<VirtualHost IPort>
ServerAlias Domain1.com
ServerName Domain1.com
Documentroot /var/www/vhosts/domain1.com/httpdocs/codebase
</VirtualHost>
<VirtualHost IPort>
ServerAlias Domain2.com
ServerName Domain2.com
Documentroot /var/www/vhosts/domain1.com/httpdocs/codebase
</VirtualHost>
But that isnt allowed .... when i delete the Virtualhost brackets then Plesk/Apache gets confused with the DocumentRoot (Duh)
But how do i fix this ... i cant edit the httpd.conf because Plesk overwrites that file everytime. and i am stuck editing this in vhost.conf.
Somebody please help me out here
Thx