I am running lighttpd 1.4.19. I have mod_auth enabled. If I do something like:
auth.require = ( "/" => (
"method" => "digest",
"realm" => "Authorized users only",
"require" => "user=someuser"
)
)
my main website on port 80 gets auth. However, I would like to enable auth for a website running on a custom port (say 8080). I handle my custom port website with the following config:
$SERVER["socket"] == ":8080" {
$HTTP["host"] =~ "^www.mysite.com" {
include "my8080site.conf"
}
}
Can anyone help out? The auth only works for the site running on port 80.