$HOST["url"] =~ "^/" + var.gp + "/"

0 views
Skip to first unread message

Brian

unread,
Nov 28, 2008, 11:34:26 PM11/28/08
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.

Brian

unread,
Nov 29, 2008, 4:22:04 PM11/29/08
to lighttpd
Turns out it works fine if you use:
> $HTTP["url"] =~ "^/" + var.sock_name + "/" {
^^^^^

Oh bother.
Reply all
Reply to author
Forward
0 new messages