Women in Technology

Hear us Roar



Article:
  Simplify Your Life with Apache Virtual Hosts
Subject:   separate files for each virtual host
Date:   2003-07-28 18:30:18
From:   bjarnedm
I'm on Mac OS X. At the end of httpd.conf I've got these two lines:
# Include /private/etc/httpd/users
Include /Volumes/WebServer/virt-hosts


The first is a standard one the comes with the Apple httpd.conf and the second one is one I doctored myself.
The upshot of these is that the files in the directories mentioned is read as extensions to httpd.conf. This makes it possible to create a special file for each virtual host, so you only just need to edit single files in this directory instead of having the whole httpd.conf loaded. Additionally, by using virtual links you can give your clients read-only access or possibly even modification rights on their own httpd.conf settings. This isn't much of a security problem as Apache has to be restarted in order for any client modification to be activated.

Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • separate files for each virtual host
    2003-08-03 09:32:55  anonymous2 [View]

    How is this not a security problem? There are plenty of nasty things a joe schmo user can do if he were to have access to his own Apache configuration file.

    Dismissing this a security problem seems to suggest that you will monitor those configuration files at all times, don't you think this just a tad impractical?