This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# When http then https but no redirect for "knowledgebase" path | |
$HTTP["scheme"] == "http" { | |
$HTTP["host"] =~ "secure.site.com" { | |
url.redirect = ( "^/(?!(knowledgebase).*)" => "https://secure.site.com/$1" ) | |
server.document-root = "/site/secure" | |
} | |
} | |
#behavior for SSL | |
$HTTP["scheme"] == "https" { | |
$HTTP["host"] =~ "^secure\.site\.com" { | |
ssl.engine = "enable" | |
server.document-root = "/site/secure" | |
server.max-keep-alive-idle = 3 | |
} | |
#if "knowledgebase" is accessed from inside of the SSL site then exit to http! | |
$HTTP["url"] =~ "knowledgebase" { | |
setenv.add-environment = ( "HTTPS" => "off" ) | |
ssl.engine = "disable" | |
url.redirect = ( "^/(.*)" => "http://secure.site.com/$1" ) | |
} | |
} |
tempat nyari SSL murah ya di IDwebhost.com Cuman disini kamu bisa menemukan paket terbaik untuk hosting webkamu.
ReplyDelete