FAQ |
Kalender |
|
![]() |
#1 | ||
|
|||
Nykomling
|
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" ) } } |
||
![]() |
![]() |
Svara |
|
|