il while try to implement on base of mod_chroot module...
ok i imagine that make :
d=open("/", O_RDONLY); chroot("/new/root");
in post_config hook
and the close in child_init...
but how to make reload phase... what is the good hook to do that! or how to detect reload...
Thanks,
Mathieu
In the main apache:
d=open("/", O_RDONLY); chroot("/new/root");
At reload time:
fchdir(d); chroot("."); do_reload(); chroot("/new/root");
At child_init:
close(d);
Torsten