SOURCES: lighttpd-mod_status.conf - limit access only to localhost
glen
glen at pld-linux.org
Mon Jul 17 14:08:27 CEST 2006
Author: glen Date: Mon Jul 17 12:08:27 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- limit access only to localhost
---- Files affected:
SOURCES:
lighttpd-mod_status.conf (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SOURCES/lighttpd-mod_status.conf
diff -u SOURCES/lighttpd-mod_status.conf:1.2 SOURCES/lighttpd-mod_status.conf:1.3
--- SOURCES/lighttpd-mod_status.conf:1.2 Tue Jul 11 22:17:36 2006
+++ SOURCES/lighttpd-mod_status.conf Mon Jul 17 14:08:22 2006
@@ -6,3 +6,10 @@
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 = ( "" )
+ }
+}
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/lighttpd-mod_status.conf?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list