Re: Overriding $DOCUMENT_ROOT in an Apache Module
| From: | Jeremy Johnstone | Date: | Thu, 25 Sep 2003 16:19:59 +0000 |
| Subject: | Re: Overriding $DOCUMENT_ROOT in an Apache Module | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4587@lists.php.net to get a copy of this message | ||
Care sharing what you did to fix it? On or offlist is fine.
Jeremy
On Thu, 2003-09-25 at 10:22, Mark Morley wrote:
> > 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