SOURCES: lighttpd-mod_status.conf - better solution. configure sta...
glen
glen at pld-linux.org
Mon Jul 17 14:17:54 CEST 2006
Author: glen Date: Mon Jul 17 12:17:54 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- better solution. configure status module only for localhost
---- Files affected:
SOURCES:
lighttpd-mod_status.conf (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SOURCES/lighttpd-mod_status.conf
diff -u SOURCES/lighttpd-mod_status.conf:1.3 SOURCES/lighttpd-mod_status.conf:1.4
--- SOURCES/lighttpd-mod_status.conf:1.3 Mon Jul 17 14:08:22 2006
+++ SOURCES/lighttpd-mod_status.conf Mon Jul 17 14:17:49 2006
@@ -1,15 +1,11 @@
+# status module
+
server.modules += (
"mod_status"
)
-#### status module
-status.status-url = "/server-status"
-status.config-url = "/server-config"
-status.statistics-url = "/server-stats"
-
-# limit access only to localhost
-$HTTP["url"] =~ "^/server-(?status|config|stats)" {
- $HTTP["remoteip"] != "127.0.0.1" {
- url.access-deny = ( "" )
- }
+$HTTP["remoteip"] == "127.0.0.1" {
+ status.status-url = "/server-status"
+ status.config-url = "/server-config"
+ status.statistics-url = "/server-stats"
}
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/lighttpd-mod_status.conf?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list