summaryrefslogtreecommitdiff
path: root/tests/fastcgi-10.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/fastcgi-10.conf
parentf03e5e239d024965d4c1476b5e02baa06f876269 (diff)
downloadlighttpd1.4-07517ff30af559d419a592b16b62c4c5dde3bb06.tar.gz
lighttpd1.4-07517ff30af559d419a592b16b62c4c5dde3bb06.zip
[tests] some test config cleanup
including limiting use of php in tests to mod-fastcgi.t
Diffstat (limited to 'tests/fastcgi-10.conf')
-rw-r--r--tests/fastcgi-10.conf125
1 files changed, 40 insertions, 85 deletions
diff --git a/tests/fastcgi-10.conf b/tests/fastcgi-10.conf
index 293ce854..7c1ba539 100644
--- a/tests/fastcgi-10.conf
+++ b/tests/fastcgi-10.conf
@@ -10,121 +10,76 @@ server.breakagelog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.
server.name = "www.example.org"
server.tag = "Apache 1.3.29"
-server.dir-listing = "enable"
-
server.modules = (
- "mod_rewrite",
- "mod_access",
"mod_auth",
"mod_authn_file",
- "mod_status",
- "mod_expire",
- "mod_redirect",
"mod_fastcgi",
- "mod_cgi",
- "mod_compress",
"mod_accesslog",
)
server.indexfiles = (
"index.php",
"index.html",
- "index.htm",
- "default.htm",
)
-######################## MODULE CONFIG ############################
-
accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
-mimetype.assign = (
- ".png" => "image/png",
- ".jpg" => "image/jpeg",
- ".jpeg" => "image/jpeg",
- ".gif" => "image/gif",
- ".html" => "text/html",
- ".htm" => "text/html",
- ".pdf" => "application/pdf",
- ".swf" => "application/x-shockwave-flash",
- ".spl" => "application/futuresplash",
- ".txt" => "text/plain",
- ".tar.gz" => "application/x-tgz",
- ".tgz" => "application/x-tgz",
- ".gz" => "application/x-gzip",
- ".c" => "text/plain",
- ".conf" => "text/plain",
-)
+$HTTP["host"] == "bin-env.example.org" {
-compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/"
-compress.filetype = (
- "text/plain",
- "text/html",
-)
-
-fastcgi.debug = 0
fastcgi.server = (
".php" => (
"grisu" => (
"host" => "127.0.0.1",
- "port" => 1026,
+ "port" => 1048,
+ "bin-path" => env.PHP,
+ "bin-copy-environment" => ( "PATH", "SHELL", "USER", ),
),
),
)
-cgi.assign = (
- ".pl" => env.PERL,
- ".cgi" => env.PERL,
-)
-
-auth.backend = "plain"
-auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
-auth.backend.plain.groupfile = "lighttpd.group"
-
-#auth.backend.ldap.hostname = "localhost"
-#auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
-#auth.backend.ldap.filter = "(uid=$)"
-
-auth.require = (
- "/server-status" => (
- "method" => "digest",
- "realm" => "download archiv",
- "require" => "group=www|user=jan|host=192.168.2.10",
- ),
- "/auth.php" => (
- "method" => "basic",
- "realm" => "download archiv",
- "require" => "user=jan",
- ),
- "/server-config" => (
- "method" => "basic",
- "realm" => "download archiv",
- "require" => "group=www|user=jan|host=192.168.2.10",
- ),
-)
+}
+else {
-url.access-deny = (
- "~",
- ".inc",
+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",
+ ) ),
)
-url.redirect = (
- "^/redirect/$" => "http://localhost:2048/",
-)
+}
-expire.url = (
- "/buggy/" => "access 2 hours",
- "/asdhas/" => "access plus 1 seconds 2 minutes",
-)
+server.error-handler-404 = "/indexfile/return-404.php"
-#### status module
-status.status-url = "/server-status"
-status.config-url = "/server-config"
+$HTTP["host"] == "zzz.example.org" {
+ server.name = "zzz.example.org"
+}
-$HTTP["host"] == "vvv.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.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.htpasswd"
+ auth.backend = "htpasswd"
+ auth.require = (
+ "" => (
+ "method" => "basic",
+ "realm" => "download archiv",
+ "require" => "valid-user",
+ ),
+ )
}
-$HTTP["host"] == "zzz.example.org" {
- server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
- server.name = "zzz.example.org"
+$HTTP["host"] == "www.example.org" {
+ $HTTP["url"] == "/go/" {
+ server.indexfiles = ( "cgi.php" )
+ }
}