nginx to lighttpd detecting request headers
- by A.Jesin
I'm moving a site form Nginx to Lighttpd. I was able to move everything except these nginx rules
set $enc_type "";
if ($http_accept_encoding ~ gzip) {
set $enc_type .gzip;
}
if (-f $request_filename$enc_type) {
rewrite (.*) $1$enc_type break;
}
I think I can create the variable like this
var.enc_type = ""
in lighttpd but how do I check if the request header Accept-Encoding contains gzip