Received: (qmail 37259 invoked by uid 501); 14 Mar 2001 10:12:56 -0000 Message-Id: <20010314101256.37257.qmail@apache.org> Date: 14 Mar 2001 10:12:56 -0000 From: Taketo Kabe Reply-To: kabe@sra-tohoku.co.jp To: submit@bugz.apache.org Subject: [PATCH] default httpd.conf lacks Scriptsock setting X-Send-Pr-Version: 3.110 >Number: 7408 >Category: mod_cgi >Synopsis: [PATCH] default httpd.conf lacks Scriptsock setting >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: apache >Arrival-Date: Wed Mar 14 02:20:01 PST 2001 >Closed-Date: Sun Mar 25 08:56:22 PST 2001 >Last-Modified: Sun Mar 25 08:56:22 PST 2001 >Originator: kabe@sra-tohoku.co.jp >Release: 2.0.14-alpha >Organization: >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 + +# +# 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 + + + +# +# Additional to mod_cgi.c settings, mod_cgid has Scriptsock +# for setting UNIX socket for communicating with cgid. +# +#Scriptsock logs/cgisock + + # # 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: State-Changed-From-To: open-closed State-Changed-By: rbb State-Changed-When: Sun Mar 25 08:56:21 PST 2001 State-Changed-Why: This has been added to the default config file and should be available in 2.0.16. I did not add the ScriptLog directives, because they are not meant for a production server, and the default config file is very large already. >Unformatted: [In order for any reply to be added to the PR database, you need] [to include 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! ]