tags:

views:

34

answers:

1

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

A: 

For anyone else who finds this in future and was looking for an answer.. I'm pretty sure this is not possible at all.

I think mod_magnet may be able to help but I didn't want to dive into that, instead I chose to change the way my application works.

Solution: change how your app works or look at mod_magnet

Mike Hayes