Re: Overriding $DOCUMENT_ROOT in an Apache Module
| From: | Mark Morley | Date: | Thu, 25 Sep 2003 15:22:30 +0000 |
| Subject: | Re: Overriding $DOCUMENT_ROOT in an Apache Module | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4585@lists.php.net to get a copy of this message | ||
> Then your not setting it correctly via your apache module.
Actually I am setting it correctly, but as you say...
> FYI - If you using apache 1.3.x you CANNOT reset document
> root. DOCUMENT_ROOT is set at a low level of initial child request
> startup. Your third party module isnt at a low enough level to do this.
..Apache replaces certain variables later on in the processing
chain, including DOCUMENT_ROOT. I found a way to avoid this though,
and now my module is working the way I want and I am able to specify
the DOCUMENT_ROOT dynamically.
Thanks for the replies though, they helped track it down.
Mark