Just set up a FreeBSD jail to run httpd in it and all works good except these two, rewrite/proxy modules.
These are error logs excerpts:
mod_rewrite error:
[rewrite:crit] [pid 43447] (13)Permission denied: AH00666: mod_rewrite: could not init rewrite_mapr_lock_acquire in child
mod_proxy error:
[proxy:crit] [pid 43447] (13)Permission denied: AH02479: could not init proxy_mutex in child
Not sure permissions of what are being denied as html in document root is being served just fine when these modules are disabled.
I tried googling but found nothing but rubbish.
Sounds like your jail lacks permissions for SysV IPC. Try to set
sysvipc_allow=1
in your jail settings or pass it withjail
command.The issue were permissions.
I set /etc/pw.conf umask to 007 from default 022 and that resulted in certain executables being unable to be reached from jails.
Once i changed containing directory permissions to original ones it all started working properly and modules are not logging errors any more.
Typical example of PEBKAC.