Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Feature Requests

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th July 2008, 18:15
aaron.barker aaron.barker is offline
Junior Member
 
Join Date: Jul 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to aaron.barker Send a message via MSN to aaron.barker
Default Append Apache Directive to VirtualHost instead of prepend

This isn't as much a feature request as a minor change request (feel free to let me know if I've posted this in the wrong area). I installed ISPconfig about 2 weeks ago and have three sites setup on it and one of the sites has a special need to have the web document root directory nested in different location then the default (still under /var/www/web#/...). Right now the work around is to manually edit the document root for the given Vhost in /etc/httpd/conf/vhosts/vhosts_ispconfig.conf. I noticed that there is an Apache directive option and I did try to edit this so it would override the default 'document root' but it appears the it prepends these directives to the virtualhost entry instead of appending them...

So, my request is to have the 'Apache Directive' appended insteaded of prepended to the VirtualHost entries so all of the settings can be manually overridden.

BTW, this is my first post and I am very impressed with the how-to forge community and ISP config in general.

Thanks,
Aaron Barker
www.tapconsulting.com
Reply With Quote
Sponsored Links
  #2  
Old 18th July 2008, 14:29
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

The problem with appending the directives is that you can override anything and everything which is a big security problem in my eyes. That's why we prepend them.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 18th July 2008, 17:14
aaron.barker aaron.barker is offline
Junior Member
 
Join Date: Jul 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to aaron.barker Send a message via MSN to aaron.barker
Cool

I see your point... So is there any way you see being able to modify the document root so that it can point to a different path, or to keep VHost modifications from being overwritten?

I guess I should try to put the VHost entry in httpd.conf after the include vhost entry, that might work.
Reply With Quote
  #4  
Old 19th July 2008, 22:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
 
Default

It may be possible to do this with mod_rewrite in an .htaccess file.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
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
Proftpd + MySQL virtual users, can't connect geekman HOWTO-Related Questions 28 27th September 2010 18:03
add web site serr57 Installation/Configuration 18 13th April 2008 11:40
CENTOS 5 Ping Problem gAnDo Server Operation 11 28th March 2008 20:58
Can't start apache Musty Server Operation 12 9th March 2008 13:58
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 00:45


All times are GMT +2. The time now is 12:57.


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