summaryrefslogtreecommitdiff
path: root/tests/lighttpd.conf
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2018-12-10 22:35:21 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2018-12-10 22:36:23 -0500
commit07517ff30af559d419a592b16b62c4c5dde3bb06 (patch)
tree628592564e9cdad85e2824bd7c0c5a1d5c40fd5b /tests/lighttpd.conf
parentf03e5e239d024965d4c1476b5e02baa06f876269 (diff)
downloadlighttpd-git-07517ff30af559d419a592b16b62c4c5dde3bb06.tar.gz
[tests] some test config cleanup
including limiting use of php in tests to mod-fastcgi.t
Diffstat (limited to 'tests/lighttpd.conf')
-rw-r--r--tests/lighttpd.conf113
1 files changed, 0 insertions, 113 deletions
diff --git a/tests/lighttpd.conf b/tests/lighttpd.conf
index f4454f95..4c8f9677 100644
--- a/tests/lighttpd.conf
+++ b/tests/lighttpd.conf
@@ -20,33 +20,20 @@ server.tag = "Apache 1.3.29"
server.dir-listing = "enable"
server.modules = (
- "mod_rewrite",
"mod_setenv",
- "mod_secdownload",
"mod_access",
- "mod_auth",
- "mod_authn_file",
- "mod_status",
"mod_expire",
"mod_simple_vhost",
- "mod_redirect",
- "mod_fastcgi",
"mod_cgi",
- "mod_compress",
"mod_userdir",
"mod_ssi",
"mod_accesslog",
)
server.indexfiles = (
- "index.php",
"index.html",
- "index.htm",
- "default.htm",
)
-######################## MODULE CONFIG ############################
-
ssi.extension = (
".shtml",
)
@@ -71,14 +58,6 @@ mimetype.assign = (
".conf" => "text/plain",
)
-$HTTP["host"] == "cache.example.org" {
- compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/"
-}
-compress.filetype = (
- "text/plain",
- "text/html",
-)
-
setenv.add-environment = (
"TRAC_ENV" => "tracenv",
"SETENV" => "setenv",
@@ -103,22 +82,6 @@ $HTTP["url"] =~ "\.pdf$" {
server.range-requests = "disable"
}
-fastcgi.debug = 0
-fastcgi.server = (
- ".php" => ( (
- "host" => "127.0.0.1",
- "port" => 1026,
- "broken-scriptfilename" => "enable",
- "allow-x-send-file" => "enable",
- ) ),
- "/prefix.fcgi" => ( (
- "host" => "127.0.0.1",
- "port" => 1026,
- "check-local" => "disable",
- "broken-scriptfilename" => "enable",
- ) ),
-)
-
cgi.local-redir = "enable"
cgi.assign = (
".pl" => env.PERL,
@@ -130,79 +93,16 @@ userdir.include-user = (
)
userdir.path = "/"
-$HTTP["host"] == "auth-htpasswd.example.org" {
- auth.backend = "htpasswd"
-}
-
-auth.backend = "plain"
-auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
-
-auth.backend.htpasswd.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.htpasswd"
-
-auth.require = (
- "/server-status" => (
- "method" => "digest",
- "realm" => "download archiv",
- "require" => "group=www|user=jan|host=192.168.2.10",
- ),
- "/server-config" => (
- "method" => "basic",
- "realm" => "download archiv",
- "require" => "valid-user",
- ),
-)
-
url.access-deny = (
"~",
".inc",
)
-url.rewrite = (
- "^/rewrite/foo($|\?.+)" => "/indexfile/rewrite.php$1",
- "^/rewrite/bar(?:$|\?(.+))" => "/indexfile/rewrite.php?bar&$1",
-)
-
-url.rewrite-if-not-file = (
- "^(/rewrite/[^?]*)(?:\?(.*))?$" => "/indexfile/rewrite.php?file=$1&$2",
-)
-
expire.url = (
"/expire/access" => "access 2 hours",
"/expire/modification" => "access plus 1 seconds 2 minutes",
)
-#### status module
-status.status-url = "/server-status"
-status.config-url = "/server-config"
-
-$HTTP["host"] == "vvv.example.org" {
- server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
- secdownload.secret = "verysecret"
- secdownload.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
- secdownload.uri-prefix = "/sec/"
- secdownload.timeout = 120
- secdownload.algorithm = "md5"
-}
-
-$HTTP["host"] == "vvv-sha1.example.org" {
- server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
- secdownload.secret = "verysecret"
- secdownload.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
- secdownload.uri-prefix = "/sec/"
- secdownload.timeout = 120
- secdownload.algorithm = "hmac-sha1"
-}
-
-$HTTP["host"] == "vvv-sha256.example.org" {
- server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
- secdownload.secret = "verysecret"
- secdownload.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
- secdownload.uri-prefix = "/sec/"
- secdownload.timeout = 120
- secdownload.algorithm = "hmac-sha256"
- secdownload.hash-querystr = "enable"
-}
-
$HTTP["host"] == "zzz.example.org" {
server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
server.name = "zzz.example.org"
@@ -232,19 +132,6 @@ $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"] =~ "bug255\.example\.org$" {
$HTTP["remoteip"] == "127.0.0.1" {
url.access-deny = (