summaryrefslogtreecommitdiff
path: root/tests/lighttpd.conf
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2012-04-19 13:02:11 +0000
committerStefan Bühler <stbuehler@web.de>2012-04-19 13:02:11 +0000
commit7187271fb66ee621ba397219998a13466d2ad2d5 (patch)
tree5ca57bc72c74e0f9a4b261291f339e64fefb0866 /tests/lighttpd.conf
parent61047369c7f8456c13d4a667ea0fa6e74871e2c8 (diff)
downloadlighttpd1.4-7187271fb66ee621ba397219998a13466d2ad2d5.tar.gz
lighttpd1.4-7187271fb66ee621ba397219998a13466d2ad2d5.zip
[auth] Add "AUTH_TYPE" environment (for *cgi), remove fastcgi specific workaround, add fastcgi test case (fixes #889)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2833 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/lighttpd.conf')
-rw-r--r--tests/lighttpd.conf13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/lighttpd.conf b/tests/lighttpd.conf
index 8608fdd6..a4b5cd84 100644
--- a/tests/lighttpd.conf
+++ b/tests/lighttpd.conf
@@ -175,6 +175,19 @@ $HTTP["host"] !~ "(no-simple\.example\.org)" {
simple-vhost.default-host = "www.example.org"
}
+$HTTP["host"] == "auth.example.org" {
+ server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
+ server.name = "auth.example.org"
+ auth.backend = "htpasswd"
+ auth.require = ( "" =>
+ (
+ "method" => "basic",
+ "realm" => "download archiv",
+ "require" => "valid-user"
+ )
+ )
+}
+
$HTTP["host"] =~ "(vvv).example.org" {
url.redirect = ( "^/redirect/$" => "http://localhost:2048/" )
}