httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sascha Schumann <sas...@schumann.cx>
Subject 1.3: make default .conf work with --disable-module=all
Date Fri, 24 Jan 2003 19:27:52 GMT
    Hi,

    does anyone see a problem with this patch?

Index: httpd.conf-dist
===================================================================
RCS file: /home/cvs/apache-1.3/conf/httpd.conf-dist,v
retrieving revision 1.82
diff -u -r1.82 httpd.conf-dist
--- httpd.conf-dist	4 Nov 2002 17:20:19 -0000	1.82
+++ httpd.conf-dist	24 Jan 2003 19:26:56 -0000
@@ -322,8 +322,10 @@
 #
 # Controls who can get stuff from this server.
 #
-    Order allow,deny
-    Allow from all
+	<IfModule mod_access.c>
+		Order allow,deny
+		Allow from all
+	</IfModule>
 </Directory>

 #
@@ -377,8 +379,10 @@
 # files, so this will protect those as well.
 #
 <Files ~ "^\.ht">
-    Order allow,deny
-    Deny from all
+    <IfModule mod_access.c>
+        Order allow,deny
+        Deny from all
+    </IfModule>
     Satisfy All
 </Files>

@@ -460,36 +464,38 @@
 #
 LogLevel warn

-#
-# The following directives define some format nicknames for use with
-# a CustomLog directive (see below).
-#
-LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
-LogFormat "%h %l %u %t \"%r\" %>s %b" common
-LogFormat "%{Referer}i -> %U" referer
-LogFormat "%{User-agent}i" agent
-
-#
-# The location and format of the access logfile (Common Logfile Format).
-# If you do not define any access logfiles within a <VirtualHost>
-# container, they will be logged here.  Contrariwise, if you *do*
-# define per-<VirtualHost> access logfiles, transactions will be
-# logged therein and *not* in this file.
-#
-CustomLog logs/access_log common
-
-#
-# If you would like to have agent and referer logfiles, uncomment the
-# following directives.
-#
-#CustomLog logs/referer_log referer
-#CustomLog logs/agent_log agent
-
-#
-# If you prefer a single logfile with access, agent, and referer information
-# (Combined Logfile Format) you can use the following directive.
-#
-#CustomLog logs/access_log combined
+<IfModule mod_log_config.c>
+    #
+    # The following directives define some format nicknames for use with
+    # a CustomLog directive (see below).
+    #
+    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
+    LogFormat "%h %l %u %t \"%r\" %>s %b" common
+    LogFormat "%{Referer}i -> %U" referer
+    LogFormat "%{User-agent}i" agent
+
+    #
+    # The location and format of the access logfile (Common Logfile Format).
+    # If you do not define any access logfiles within a <VirtualHost>
+    # container, they will be logged here.  Contrariwise, if you *do*
+    # define per-<VirtualHost> access logfiles, transactions will be
+    # logged therein and *not* in this file.
+    #
+    CustomLog logs/access_log common
+
+    #
+    # If you would like to have agent and referer logfiles, uncomment the
+    # following directives.
+    #
+    #CustomLog logs/referer_log referer
+    #CustomLog logs/agent_log agent
+
+    #
+    # If you prefer a single logfile with access, agent, and referer information
+    # (Combined Logfile Format) you can use the following directive.
+    #
+    #CustomLog logs/access_log combined
+</IfModule>

 #
 # Optionally add a line containing the server version and virtual host

    - Sascha

Mime
View raw message