Project

General

Profile

Actions

Bug #252

closed

Inconsistent behaviour of auth.require inside a $HOST["remoteip"] conditional

Added by Anonymous over 19 years ago. Updated over 18 years ago.

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

Actions #1

Updated by Anonymous over 19 years ago

what about your 2 urls? the static and dynamic

-- Xuefer

Actions #2

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