Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th August 2011, 10:53
vclarine vclarine is offline
Junior Member
 
Join Date: Jul 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Talking 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.
Reply With Quote
Sponsored Links
  #2  
Old 17th August 2011, 12:03
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,001
Thanks: 840
Thanked 5,650 Times in 4,460 Posts
Default

just add domain 2 as co-domain of domain 1. There are no manual changes in Vhosts_ispconfig.conf required.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 17th August 2011, 12:44
vclarine vclarine is offline
Junior Member
 
Join Date: Jul 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Question 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.
Reply With Quote
  #4  
Old 17th August 2011, 13:10
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,001
Thanks: 840
Thanked 5,650 Times in 4,460 Posts
 
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Tags
change documentroot

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hacked server Captain Installation/Configuration 8 23rd December 2010 11:39
rkhunter report Captain Installation/Configuration 6 10th October 2010 14:05
adding mail boxes kwickcut Server Operation 20 11th August 2010 02:02
ISPConfig adds two DocumentRoot to a virtual host cryptic General 3 9th November 2006 10:56
websites outside ISPConfig guidovanh Installation/Configuration 13 7th March 2006 23:56


All times are GMT +2. The time now is 09:02.


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