Bug #1342
closedmod_auth mixed with mod_redirect problem
Description
I have a problem with this configuration on my server:
$HTTPhost == "lmsensors.black-pearl.eu.org" {
server.document-root = "/var/www/htdocs/lm-sensors/"
url.redirect = ( "^/(.*)" => "https://lmsensors.black-pearl.eu.org/$1" )
auth.backend = "plain"
auth.backend.plain.userfile = "/etc/lighttpd/lighttpd.user"
auth.require = ( "/" =>
(
"method" => "digest",
"realm" => "LM_sensors",
"require" => "valid-user"
)
)
}
When I try to enter thru my browser, server redirect me to https:// but it goes in to the loop. There’s no error information in logs.
-- siwy
Updated by darix over 17 years ago
- Status changed from New to Fixed
- Resolution set to worksforme
http://trac.lighttpd.net/trac/wiki/HowToRedirectHttpToHttps
you need the else example at the bottom
Updated by Anonymous over 17 years ago
- Status changed from Fixed to Need Feedback
- Resolution deleted (
worksforme)
I look over this configuration on how to, but I don’t want to redirect all hosts to https but only one.
-- siwy
Updated by stbuehler almost 17 years ago
- Status changed from Need Feedback to Fixed
- Resolution set to invalid
This is a bug tracker, not a support forum.
If you redirect every request to a host, it will loop of course - so only redirect it if its not SSL, as shown in the wiki.
Also available in: Atom