summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2002-07-11 13:40:15 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2002-07-11 13:40:15 +0000
commit0f1846d0f72656ce55b3e153ab860972071791d0 (patch)
treee51002330f5fc32c1a68412120b80fcd7a648842 /usr.sbin
parent35b3327508126de9b155cefa67d1111ae877dd6a (diff)
chroot aware
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/httpd/src/modules/standard/mod_mime.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/httpd/src/modules/standard/mod_mime.c b/usr.sbin/httpd/src/modules/standard/mod_mime.c
index dc361b99a37..6543f413234 100644
--- a/usr.sbin/httpd/src/modules/standard/mod_mime.c
+++ b/usr.sbin/httpd/src/modules/standard/mod_mime.c
@@ -345,6 +345,8 @@ static void init_mime(server_rec *s, pool *p)
types_confname = ap_server_root_relative(p, types_confname);
+ ap_server_strip_chroot(types_confname, 0); /* only needed at restart */
+
if (!(f = ap_pcfg_openfile(p, types_confname))) {
ap_log_error(APLOG_MARK, APLOG_ERR, s,
"could not open mime types log file %s.", types_confname);