Lighttpd check request headers in configuration
Posted
by Mike Hayes
on Stack Overflow
See other posts from Stack Overflow
or by Mike Hayes
Published on 2010-06-03T21:11:56Z
Indexed on
2010/06/03
21:14 UTC
Read the original article
Hit count: 314
lighttpd
Hi
I was wondering if it was possible in the configuration of Lighttpd to read request headers, I've searched and searched.. apparently it's not possible.
For example, conditional configuration based upon IP address:
$HTTP["remoteip"] == "0.0.0.0" {
// Do something
}
Is there something similar to check headers, for example:
$HTTP["X-Some-Header"] == "Value" {
// Do something
}
I'm thinking there isn't but thought I would post here as a last resort. Google didn't help much, and Lighttpd documentation would suggest this is not possible.
Thanks
Mike
© Stack Overflow or respective owner