+1 ----- Original Message ----- From: "G�nter Knauf" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 21, 2002 8:48 AM Subject: [PATCH] Apache2 httpd.conf
Hi, can we apply this simple patch so that we dont have to always uncomment 12 lines for getting mod_info / mod_status working? thanks! --- httpd-win.conf.orig Thu Jun 13 20:39:04 2002 +++ httpd-win.conf Fri Jun 21 14:26:30 2002 @@ -850,24 +850,28 @@ # Allow server status reports, with the URL of http://servername/server-status # Change the ".@@DomainName@@" to match your domain to enable. # -#<Location /server-status> -# SetHandler server-status -# Order deny,allow -# Deny from all -# Allow from .@@DomainName@@ -#</Location> +<IfModule mod_status.c> + <Location /server-status> + SetHandler server-status + Order deny,allow + Deny from all + Allow from .@@DomainName@@ + </Location> +</IfModule> # # Allow remote server configuration reports, with the URL of # http://servername/server-info (requires that mod_info.c be loaded). # Change the ".your-domain.com" to match your domain to enable. # -#<Location /server-info> -# SetHandler server-info -# Order deny,allow -# Deny from all -# Allow from .@@DomainName@@ -#</Location> +<IfModule mod_info.c> + <Location /server-info> + SetHandler server-info + Order deny,allow + Deny from all + Allow from .@@DomainName@@ + </Location> +</IfModule> # # Proxy Server directives. Uncomment the following lines to --- httpd-std.conf.in.orig Sat Jun 15 09:21:00 2002 +++ httpd-std.conf.in Fri Jun 21 14:25:03 2002 @@ -941,24 +941,28 @@ # Allow server status reports, with the URL of http://servername/server-status # Change the ".your-domain.com" to match your domain to enable. # -#<Location /server-status> -# SetHandler server-status -# Order deny,allow -# Deny from all -# Allow from .your-domain.com -#</Location> +<IfModule mod_status.c> + <Location /server-status> + SetHandler server-status + Order deny,allow + Deny from all + Allow from .your-domain.com + </Location> +</IfModule> # # Allow remote server configuration reports, with the URL of # http://servername/server-info (requires that mod_info.c be loaded). # Change the ".your-domain.com" to match your domain to enable. # -#<Location /server-info> -# SetHandler server-info -# Order deny,allow -# Deny from all -# Allow from .your-domain.com -#</Location> +<IfModule mod_info.c> + <Location /server-info> + SetHandler server-info + Order deny,allow + Deny from all + Allow from .your-domain.com + </Location> +</IfModule> # # Proxy Server directives. Uncomment the following lines to
