httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50521] New: Comment at top of sample main config file is wrong
Date Sat, 25 Dec 2010 13:48:09 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50521

           Summary: Comment at top of sample main config file is wrong
           Product: Apache httpd-2
           Version: 2.2.16
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: apache.bugzilla@catcons.co.uk


The comment at the top of the sample main config file is generated (this sample
from Slackware64 13.1) as:

# ...  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "/var/log/httpd/foo_log"
# with ServerRoot set to "/usr" will be interpreted by the
# server as "/usr//var/log/httpd/foo_log".

The leading / of both /var strings should not be present.

A possible patch (for 2.1.7, created by "ponce" not me and online at
http://ponce.cc/slackware/testing/other/patches/rel_logfiledir.patch) is

--- httpd-2.2.17/configure.orig    2010-12-25 11:46:47.000000000 +0100
+++ httpd-2.2.17/configure    2010-12-25 11:53:58.000000000 +0100
@@ -3185,7 +3185,8 @@
     # it wasn't so return the original
     rel_logfiledir="$exp_logfiledir"
 fi
-
+# I said strip it
+rel_logfiledir="`echo ${rel_logfiledir} | sed -e 's#^/##'`"

   APACHE_VAR_SUBST="$APACHE_VAR_SUBST rel_logfiledir"

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message