I am using Clodflare DNS. I only want to allow certain IPs to access certain files.
How can I set up my lighttpd.conf to properly detect the correct IP? I know how to do it for the access.log. Is it possible to use $HTTP["remoteip"] together withsomething else?
This is how I do it today:
$HTTP["remoteip"] == "xx.xx.xx.xx" {
url.access-deny = ("")
}
I have tried with the following but it didnt work:
$HTTP["remoteip"] =="*"{
extforward.forwarder = ( "all" => "trust" )
extforward.headers = ("CF-Connecting-IP")
}