HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=18)
-   -   Vhosts_ispconfig.conf DocumentRoot modification (http://www.howtoforge.com/forums/showthread.php?t=53803)

vclarine 17th August 2011 09:53

Vhosts_ispconfig.conf DocumentRoot modification
 
Hello,

I am using Ispconfig 2 on debian.

My problem is this

I have two domain name :

domaine1.com with DocumentRoot in /www/web1/web/
domaine2.com with DocumentRoot in /www/web2/web/

I want the domaine1.com and domaine2.com to have the same DocumentRoot
in others word i want domaine2.com to have the same DocumentRoot in /www/web1/web.

At final i must have :

domaine1.com with DocumentRoot in /www/web1/web/
domaine2.com with DocumentRoot in /www/web1/web/


I have done everything but no solutions.

Please help me.
Thanks.:D

till 17th August 2011 11:03

just add domain 2 as co-domain of domain 1. There are no manual changes in Vhosts_ispconfig.conf required.

vclarine 17th August 2011 11:44

just add domain 2 as co-domain of domain 1
 
Thanks Till,

Addind domain 2 as co-domain will force the 2 domain to have exactly the same design and will not resolve my problem.
The two domain have web sites and having the same DocumentRoot does not mean that their content are exactly the same.

Thanks.

till 17th August 2011 12:10

Add the second domain as co-domain to the first one. Thats the way it is done for all cms systems. If you want to show different content, then this is handled by the cms system or script that delivers the content or you use apache rewrite rules to show different conetnt based on the domain name.


All times are GMT +2. The time now is 22:59.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.