• Medlem
  • Stockholm
  • 2010-09-12 11:19

Hej jag har idag all http trafik redirectad mot https (ssl) med nedanstående 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" )
}
}