Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd January 2006, 16:45
jeanjacquesjeanjacques jeanjacquesjeanjacques is offline
Member
 
Join Date: Nov 2005
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default changing the default apache document root

Hello,
I tried to find how to change the document root of my website but i didn't figure out how to do it.
Do you know how to do this ?

Best regards,

JJ
Reply With Quote
Sponsored Links
  #2  
Old 2nd January 2006, 16:50
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,405
Thanks: 834
Thanked 5,496 Times in 4,326 Posts
Default

Why do you want to change the default document root? ISPConfig does not use it at all and if you configured ISPConfig correctly, you will never see an page in the default docroot.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 2nd January 2006, 16:55
jeanjacquesjeanjacques jeanjacquesjeanjacques is offline
Member
 
Join Date: Nov 2005
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Til,

Thank you for your answer.
In fact i've installed a cms inside the /home/www/web12/web/ and i would like that the visitors of my website arrive directly to it when they type www.mydomain.org
Can't i do such things with ISPconfig ?

Thanks,

JJ
Reply With Quote
  #4  
Old 2nd January 2006, 17:01
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,405
Thanks: 834
Thanked 5,496 Times in 4,326 Posts
Default

Thats something different. /home/www/web12/web/ is alraedy the document root. Just set the domain of this website to: www.mydomain.org and ad a co-domain mydomain.org with an empty hostname.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 2nd January 2006, 17:06
jeanjacquesjeanjacques jeanjacquesjeanjacques is offline
Member
 
Join Date: Nov 2005
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry but apparently i don0t figure out how to communicate my problem.
When a visitor is typing www.mydomain.org is arriving here /home/www/web12/web/ and this is normal.
I would like to change this a little bit, i mean when a user is typing i would like him to be redirected to /home/www/web12/web/cms instead of /home/www/web12/web/ .
Do you know if this is feasible ?
I know that i could do a php file with the function header() but i would like to avoid this practice which is not very efficient in terms os search engine optimisation.
Best regards,

JJ
Reply With Quote
  #6  
Old 2nd January 2006, 17:08
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,405
Thanks: 834
Thanked 5,496 Times in 4,326 Posts
Default

Ahhh ok

No, you cant change the docroot of a vhost to a subdirectory. But you can use mod_rewrite rules to rewrite the incoming requests to the subdirectory.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 2nd January 2006, 17:21
jeanjacquesjeanjacques jeanjacquesjeanjacques is offline
Member
 
Join Date: Nov 2005
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
 
Thumbs up

Thank you for your support Till !
Reply With Quote
Reply

Bookmarks

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
Quota setup in Perfect Debian Sarge chris_87 HOWTO-Related Questions 21 4th March 2007 15:00
Postfix error dianer Installation/Configuration 22 8th May 2006 00:31
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 14:42
ISPConfig pop3 problem mphayesuk General 21 31st October 2005 10:53
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs pontifex HOWTO-Related Questions 2 26th October 2005 17:54


All times are GMT +2. The time now is 03:46.


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