Append Apache Directive to VirtualHost instead of prepend

Discussion in 'Feature Requests' started by aaron.barker, Jul 17, 2008.

  1. aaron.barker

    aaron.barker New Member

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

    falko Super Moderator Howtoforge Staff

    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.
     
  3. aaron.barker

    aaron.barker New Member

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

    falko Super Moderator Howtoforge Staff

    It may be possible to do this with mod_rewrite in an .htaccess file.
     

Share This Page