diff options
author | mOo <moo.lighttpd@gmail.com> | 2005-09-20 05:54:19 +0000 |
---|---|---|
committer | mOo <moo.lighttpd@gmail.com> | 2005-09-20 05:54:19 +0000 |
commit | 14754f33f40e3399236c0ca2282271f2bb929282 (patch) | |
tree | cdcca6aede2f4d5a3ddfa8e27b5d8483285ccab0 /tests/lighttpd.conf | |
parent | 4f1b2f8ca0661c6db4a0a9d36b43ffac202d3d3c (diff) | |
download | lighttpd-git-14754f33f40e3399236c0ca2282271f2bb929282.tar.gz |
fix and add testcase for #255
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@716 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/lighttpd.conf')
-rw-r--r-- | tests/lighttpd.conf | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/tests/lighttpd.conf b/tests/lighttpd.conf index a435e8f0..c6e86cd6 100644 --- a/tests/lighttpd.conf +++ b/tests/lighttpd.conf @@ -155,22 +155,21 @@ $HTTP["host"] =~ "(zzz).example.org" { url.redirect = ( "^/redirect/$" => "http://localhost:2048/%1" ) } -$HTTP["host"] =~ "(remoteip).example.org" { - $HTTP["remoteip"] =~ "(127.0.0.1)" { +$HTTP["host"] =~ "(remoteip)\.example\.org" { + $HTTP["remoteip"] =~ "(127\.0\.0\.1)" { url.redirect = ( "^/redirect/$" => "http://localhost:2048/%1" ) } } -$HTTP["remoteip"] =~ "(127.0.0.1)" { - $HTTP["host"] =~ "(remoteip2).example.org" { +$HTTP["remoteip"] =~ "(127\.0\.0\.1)" { + $HTTP["host"] =~ "(remoteip2)\.example\.org" { url.redirect = ( "^/redirect/$" => "http://localhost:2048/%1" ) } } -# deny access for all image stealers -$HTTP["host"] == "referer.example.org" { - $HTTP["referer"] !~ "^($|http://referer\.example\.org)" { - url.access-deny = ( ".png" ) +$HTTP["host"] =~ "bug255\.example\.org$" { + $HTTP["remoteip"] == "127.0.0.1" { + url.access-deny = ( "" ) } } @@ -178,3 +177,10 @@ $HTTP["referer"] !~ "^($|http://referer\.example\.org)" { url.access-deny = ( ".jpg" ) } +# deny access for all image stealers +$HTTP["host"] == "referer.example.org" { + $HTTP["referer"] !~ "^($|http://referer\.example\.org)" { + url.access-deny = ( ".png" ) + } +} + |