You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Taketo Kabe <ka...@sra-tohoku.co.jp> on 2001/03/14 11:12:56 UTC
mod_cgi/7408: [PATCH] default httpd.conf lacks Scriptsock setting
>Number: 7408
>Category: mod_cgi
>Synopsis: [PATCH] default httpd.conf lacks Scriptsock setting
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: doc-bug
>Submitter-Id: apache
>Arrival-Date: Wed Mar 14 02:20:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: kabe@sra-tohoku.co.jp
>Release: 2.0.14-alpha
>Organization:
apache
>Environment:
SunOS 5.8 Generic_108528-05 sun4u sparc SUNW,Ultra-60
gcc version 2.95.2 19991024 (release)
>Description:
Default httpd.conf lacks "Scriptsock logs/cgisock" description
which is used with CGId configuration.
Without this setting httpd will leave "cgisock" socket file lying around
if ServerRoot and other /var-related setups (like LockFile, PidFile...)
are configured by the admin into different directory.
>How-To-Repeat:
* Configure with --enable-cgid, then
* Set /var-related setup in httpd.conf to somewhere else, like
LockFile /var/apache/logs/accept.lock
PidFile /var/apache/logs/httpd.pid
ScoreBoardFile /var/apache/logs/apache_runtime_status
ErrorLog /var/apache/logs/error_log
CustomLog /var/apache/logs/access_log combined
* Start httpd.
@@ServerRoot@@/cgisock is left in @@ServerRoot@@ although you thought
all /var-thingies are moved out.
>Fix:
This patch also include ScriptLog doc, which IS described in the manual.
TODO:
Windows' httpd-win.conf
Provide manual for cgid, not just in httpd.conf
In long terms we may should not rely on @@ServerRoot@@ for /var things
(like MachineRoot /var/apache ?)
diff -u httpd-2_0_14-alpha/docs/conf/httpd-std.conf.dist httpd-2_0_14-alpha/docs/conf/httpd-std.conf
--- httpd-2_0_14-alpha/docs/conf/httpd-std.conf.dist Fri Feb 23 03:54:49 2001
+++ httpd-2_0_14-alpha/docs/conf/httpd-std.conf Wed Mar 14 18:46:20 2001
@@ -457,6 +457,26 @@
#
#CustomLog logs/access_log combined
+<IfModule mod_cgi.c>
+#
+# The location of the CGI script debug logging output.
+# Default is none, which no log is created. Logging is only desireable
+# for debugging; should not be enabled for production servers for
+# speed and security.
+#
+#ScriptLog logs/script.log
+#ScriptLogLength 10385760
+#ScriptLogBuffer 1024
+</IfModule>
+
+<IfModule mod_cgid.c>
+#
+# Additional to mod_cgi.c settings, mod_cgid has Scriptsock <path>
+# for setting UNIX socket for communicating with cgid.
+#
+#Scriptsock logs/cgisock
+</IfModule>
+
#
# Optionally add a line containing the server version and virtual host
# name to server-generated pages (error documents, FTP directory listings,
>Release-Note:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]