httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mathieu CARBONNEAUX <>
Subject Re: [] Re: how to modify Document Root from module...
Date Sun, 26 Nov 2006 23:57:39 GMT
the idea is to fake document root after chrooting apache.

after reading configuration and setting document root, in child init i make chroot to the
actual document root, 
and after i whant to correct document root to reflect the new document root "/"...

without that you must have document root that exist in chroot and outside the chroot... 
because apache check if document root is directory at configuration stage...

Best Regards,

From: Nick Kew []
Sent: Mon, 27 Nov 2006 00:14:15 +0100
Subject: [] Re: how to modify Document Root from module...

On Sun, 26 Nov 2006 23:55:39 +0100
Mathieu CARBONNEAUX <> wrote:

> hi,
> i'm developping a module and i need to modify ap_document_root
> dynamicaly in my module

No you don't!  Define another variable you can manipulate.
Don't mess with apache's standard vars!

Nick Kew

Application Development with Apache - the Apache Modules Book
View raw message