Dokumentation
Wie man LigHTTPd (aka Lighty) konfiguriert
Nur ein paar Notizen hier teilen, weil ich es tue; ich habe nirgendwo besser, um sie zu setzen. :
Den Zugang zu Subdir verweigern
# deny access to /data
$HTTP["url"] =~ "^/data" {
url.access-deny = ("")
}Weiterleitung von http zu https
Setzt darauf, dass https aktiviert ist. Stellen Sie außerdem sicher, dass mod_redirect geladen ist.
server.modules = (
...
"mod_redirect",
)Dann dies:
# redirect all http to https
$HTTP["scheme"] == "http" {
# capture vhost name with regex conditiona -> %0 in redirect pattern
# must be the most inner block to the redirect rule
$HTTP["host"] =~ ".*" {
url.redirect = (".*" => "https://%0$0")
}
}