This file contains hidden or 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
<?php | |
$connstr = getenv("MYSQLCONNSTR_MySqlDB"); | |
//Parse the above environment variable to retrieve username, password and hostname. | |
foreach ($_SERVER as $key => $value) | |
{ | |
if (strpos($key, "MYSQLCONNSTR_") !== 0) | |
{ | |
continue; | |
} |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="HTTP/S to HTTPS Redirect" enabled="true" stopProcessing="true"> | |
<match url="(.*)" /> | |
<conditions logicalGrouping="MatchAny"> | |
<add input="{SERVER_PORT_SECURE}" pattern="^0$" /> | |
</conditions> |
This file contains hidden or 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
<% | |
If Request.ServerVariables("HTTPS") = "off" Then | |
Response.Redirect "https://" & Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("UNENCODED_URL") | |
ElseIf Request.ServerVariables("HTTPS") = "on" Then | |
Response.Redirect "https://" & Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("UNENCODED_URL") | |
End If | |
%> |
This file contains hidden or 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
Order Deny,Allow | |
Deny from all | |
SetENVIf X-Client-IP "xxx.xxx.xxx.xxx" AllowAccess | |
Allow from env=AllowAccess |
This file contains hidden or 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
Order Allow,Deny | |
Deny from env=DenyAccess | |
Allow from all | |
SetENVIf X-Client-IP "xxx.xxx.xxx.xxx" DenyAccess |