Project

General

Profile

Actions

Bug #1342

closed

mod_auth mixed with mod_redirect problem

Added by Anonymous over 17 years ago. Updated about 16 years ago.

Status:
Invalid
Priority:
Low
Category:
mod_auth
Target version:
ASK QUESTIONS IN Forums:

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

Actions #1

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

Actions #2

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

Actions #3

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.

Actions #4

Updated by stbuehler about 16 years ago

  • Status changed from Fixed to Invalid
Actions

Also available in: Atom