Brian
unread,Nov 28, 2008, 11:34:26 PM11/28/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to lighttpd
Hi there,
Is it possible to configure a Lighttpd so that you have an include
file, likeso:
::
# "incl-sock.conf"
$HOST["url"] =~ "^/" + var.sock_name + "/" {
scgi.server = ( "/" =>
(
(
"socket" => "/tmp/" + var.sock_name + ".scgi",
"check-local" => "disable",
)
)
)
}
::
And then in the lighttpd.conf you can simply add a bunch of maps to
sockets likeso:
::
# lighttpd.conf
...
# /demo/ => scgi (/tmp/demo.scgi)
var.sock_name = "demo"
include "incl-sock.conf"
# /test/ => scgi (/tmp/test.scgi)
var.sock_name = "test"
include "incl-sock.conf"
::
I'm pretty new to Lighttpd, but it's fun to learn. This would simplify
things for me. The alternative I can think of is to use a script
included with include_shell. I'd be happy to entertain suggestions as
to how else to do something like this.