]> git.pld-linux.org Git - packages/lighttpd.git/blobdiff - lighttpd-mod_status.conf
- better solution. configure status module only for localhost
[packages/lighttpd.git] / lighttpd-mod_status.conf
index 324ba00fd9e547c873cf613269c3233f5e0a9634..62cd6c4de46d21f23dedbb69675ba50382336662 100644 (file)
@@ -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"
 }
This page took 0.025687 seconds and 4 git commands to generate.