diff options
author | stbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2008-07-27 14:55:04 +0000 |
---|---|---|
committer | stbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2008-07-27 14:55:04 +0000 |
commit | a7ae061522ca6135df0ee6aac5f72eab62b4f69f (patch) | |
tree | c9019c781a374278b0de1458900c19f58448d7fd /tests/lighttpd.conf | |
parent | 2b60f164a195c7f0662e8d6ca54aa8c3fd289b6a (diff) | |
download | lighttpd-a7ae061522ca6135df0ee6aac5f72eab62b4f69f.tar.gz |
[tests] Remake fastcgi test (using mod_proxy_core)
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@2204 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/lighttpd.conf')
-rw-r--r-- | tests/lighttpd.conf | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/lighttpd.conf b/tests/lighttpd.conf index 83bdf656..1444f1dd 100644 --- a/tests/lighttpd.conf +++ b/tests/lighttpd.conf @@ -20,6 +20,22 @@ $HTTP["url"] =~ "\.pdf$" { server.range-requests = "disable" } +$PHYSICAL["existing-path"] =~ "\.php$" { + proxy-core.debug = 0 + proxy-core.protocol = "fastcgi" + proxy-core.backends = ( "127.0.0.1:1026" ) +} + +$HTTP["url"] =~ "^/prefix.fcgi" { + proxy-core.debug = 0 + proxy-core.protocol = "fastcgi" + proxy-core.backends = ( "127.0.0.1:1026" ) + proxy-core.rewrite-request = ( + "_pathinfo" => ( "^/prefix.fcgi(/.*)" => "$1" ), + "_scriptname" => ( "^(/prefix.fcgi)" => "$1" ) + ) +} + #fastcgi.debug = 0 #fastcgi.server = ( ".php" => ( ( "host" => "127.0.0.1", "port" => 1026, "broken-scriptfilename" => "enable" ) ), # "/prefix.fcgi" => ( ( "host" => "127.0.0.1", "port" => 1026, "check-local" => "disable", "broken-scriptfilename" => "enable" ) ) |