I'm trying to configure lighttpd to send SCGI requests to different ports, depending on what file(s) are accessed. Is this possible?
This is what I've tried, and it hasn't worked.
Code:
$HTTP["url"] == "URL1" {
scgi.server = (
"/RPC2" =>
( "127.0.0.1" =>
(
"host" => "127.0.0.1",
"port" => 5001,
"check-local" => "disable"
)
)
)
}
$HTTP["url"] == "URL2" {
scgi.server = (
"/RPC3" =>
( "127.0.0.1" =>
(
"host" => "127.0.0.1",
"port" => 5002,
"check-local" => "disable"
)
)
)
}
SCGI requests aren't sent to the correct port, regardless of what file is accessed. Any help would be appreciated.