Apache virtual hosts in jail enviroment

Posted on

Apache virtual hosts in jail enviroment – Problems with loading a website are often blamed on the Internet connection, but even the most perfectly set up network cannot help if there is no service to reply at your destination. One of the most popular HTTP servers used for this task is Apache2. Much of Apache’s popularity can be attributed to its easy installation and use, but never the less it is possible to run into problems with even the easiest of the software. If you’ve encountered an issue loading your web page, follow these simple troubleshooting methods outlined in this guide to attempt to get your web server back up and working again. Below are some tips in manage your apache2 server when you find problem about apache-2.2, virtualhost, jail, , .

I have a linux server with a chroot user jail environment. Users files are kept under


and are currently resolvable under


I need users to be able to setup their own virtualhost config rather than using global apache2.conf i.e user will create file


and it will put their virtual host information. Is this possible?

It’s possible, but not a great idea. The only real way to do this is include those files in the main apache config; but in doing so they can put directives that are not vhost specific in those files. Letting them configure the vhost allows them to loadmodules into the apache process or apply serveraliases that may be owned by other tenants.

As far as I know, the only way to safely allow untrusted users to modify their own configurations is to run a separate httpd service for each and reverse-proxy connections to each from a main, but this runs into difficulty in knowing the correct hostnames for each, as well as SSL parameters.

Leave a Reply

Your email address will not be published.