Actions
Bug #252
closedInconsistent behaviour of auth.require inside a $HOST["remoteip"] conditional
Status:
Fixed
Priority:
Normal
Category:
mod_access
Target version:
-
ASK QUESTIONS IN Forums:
Description
In the following configuration snippet, requests from IP a.b.c.d for dynamic content (i.e. wiki pages via PHP/FastCGI) are let through as they should, but static content (CSS, images) is blocked, requiring a password. Other IPs are correctly blocked entirely.
# Mediawiki forest $HTTP["host"] =~ "^wiki\.(wikked\.net|lucassen-advocaten\.nl)$" { $HTTP["host"] == "wiki.lucassen-advocaten.nl" { $HTTP["remoteip"] != "a.b.c.d" { auth.require = ( "" => ( "method" => "basic", "realm" => "wiki", "require" => "valid-user" ) ) } } server.document-root = "/var/www/mediawiki/" url.rewrite = ( "^/$" => "/w/index.php", "^/wiki/(.*)" => "/w/index.php?title=$1" ) # PHP with modified settings fastcgi.server = ( ".php" => ( "mediawiki" => ( "socket" => "/tmp/php-fastcgi-mediawiki.socket") ) ) }
-- mark+lighttpd
Updated by Anonymous over 19 years ago
what about your 2 urls? the static and dynamic
-- Xuefer
Updated by Anonymous over 19 years ago
- Status changed from New to Fixed
- Resolution set to fixed
fixed in r716 duplicated as #255. let me know if it's not fixed
-- Xuefer
Actions
Also available in: Atom