httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Querna <>
Subject Re: How to change ap_document_root variable from a apache2 module ?
Date Fri, 31 Dec 2004 03:13:37 GMT
Rasmus Lerdorf wrote:
> On Thu, 30 Dec 2004, Paul Querna wrote:
>>It is impossible with the current way virtual hosts and document roots
>>are handled.
> I guess doing it per-conf Apache1-style, as in:
>   conf = ap_get_module_config()
>   conf->ap_document_root = ...;

This is not safe in a multi-threaded MPM, IIRC.

> Just sets the root server's docroot then now.  Not being able able to
> manipulate the document_root is a rather severe limitation as far as I am
> concerned.

I agree. But to fix it properly, we need a different system for doing 
configuration stuff. The current system is just no good for doing stuff 
on demand/on request.

View raw message