Vhosts_ispconfig.conf DocumentRoot modification

Discussion in 'Developers' Forum' started by vclarine, Aug 17, 2011.

  1. vclarine

    vclarine New Member

    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
     
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

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

    vclarine New Member

    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.
     
  4. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    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.
     

Share This Page