![]() |
Lighttpd ssl redirect
Hej jag har idag all http trafik redirectad mot https (ssl) med nedanstående lighttpd config.
Jag skulle vilja att all trafik mot https://domain/myspecialpath tvärtom endast skall ske via http. Hur förändrar jag config nedan? ----- $SERVER["socket"] == ":443" { $HTTP["host"] =~ "^(.+)$" { evhost.path-pattern = "/var/webrootpath/public/" #fastcgi.debug = 1000 $HTTP["url"] !~ "^/(favicon.ico$|res/|phpmyadmin)" { fastcgi.server = ( "/" => (( "host" => "127.0.0.1", "port" => 5000, "check-local" => "disable", "allow-x-send-file" => "enable" )), ) } } } else $SERVER["socket"] == ":80" { $HTTP["host"] =~ "^([^\.]+\.mydmain\.com).*$" { url.redirect = ( "^/(.*)" => "https://%1/$1" ) } } |
Alla tider är GMT +2. Klockan är nu 00:40. |
Programvara från: vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Svensk översättning av: Anders Pettersson