httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mathieu CARBONNEAUX <i...@ch2o.info>
Subject Re: [info@ch2o.info] 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,
Mathieu
  _____  

From: Nick Kew [mailto:nick@webthing.com]
To: dev@httpd.apache.org
Sent: Mon, 27 Nov 2006 00:14:15 +0100
Subject: [info@ch2o.info] Re: how to modify Document Root from module...

On Sun, 26 Nov 2006 23:55:39 +0100
Mathieu CARBONNEAUX <info@ch2o.info> 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
http://www.apachetutor.org/
  
Mime
View raw message