833e2f8858
- unbreak group setting; Cherokee assumed a fixed size 1k buffer for getgrnam_r which is insufficient on some OS, including OpenBSD. symptom was that group setting resulted in ERANGE. This just bumps the buffer to 8k which isn't a perfect fix, but serves our purposes for now; see ports@ archives at http://marc.info/?t=124832494600002&r=1&w=2 for more discussion. maintainer ok.
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
$OpenBSD: patch-cherokee_conf_sample_pre,v 1.4 2009/07/27 17:06:16 sthen Exp $
|
|
--- cherokee.conf.sample.pre.orig Mon May 25 08:16:06 2009
|
|
+++ cherokee.conf.sample.pre Tue Jun 9 22:35:47 2009
|
|
@@ -13,6 +13,9 @@
|
|
#
|
|
server!bind!1!port = 80
|
|
server!timeout = 15
|
|
+server!user = _cherokee
|
|
+server!group = _cherokee
|
|
+server!ipv6 = 0
|
|
server!keepalive = 1
|
|
server!keepalive_max_requests = 500
|
|
server!server_tokens = full
|
|
@@ -27,10 +30,10 @@ vserver!1!directory_index = index.html
|
|
|
|
vserver!1!logger = combined
|
|
vserver!1!logger!access!type = file
|
|
-vserver!1!logger!access!filename = %localstatedir%/log/cherokee.access
|
|
+vserver!1!logger!access!filename = %localstatedir%/log/cherokee/cherokee.access
|
|
vserver!1!logger!access!buffsize = 16384
|
|
vserver!1!logger!error!type = file
|
|
-vserver!1!logger!error!filename = %localstatedir%/log/cherokee.error
|
|
+vserver!1!logger!error!filename = %localstatedir%/log/cherokee/cherokee.error
|
|
|
|
vserver!1!rule!1!match = default
|
|
vserver!1!rule!1!handler = common
|
|
@@ -48,7 +51,7 @@ vserver!1!rule!3!handler = file
|
|
|
|
vserver!1!rule!4!match = directory
|
|
vserver!1!rule!4!match!directory = /cgi-bin
|
|
-vserver!1!rule!4!document_root = %prefix%/lib/cgi-bin
|
|
+vserver!1!rule!4!document_root = %wwwroot%/cgi-bin/
|
|
vserver!1!rule!4!handler = cgi
|
|
|
|
vserver!1!rule!5!match = directory
|