﻿<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <location path="index.html">
    <system.webServer>
      <defaultDocument>
        <files>
          <clear />
          <add value="index.html" />
          <add value="Default.asp" />
          <add value="Default.htm" />
          <add value="index.htm" />
          <add value="iisstart.htm" />
          <add value="default.aspx" />
        </files>
      </defaultDocument>
    </system.webServer>
  </location>
  <system.webServer>
    <directoryBrowse enabled="false" />
    <httpErrors>
      <remove statusCode="403" subStatusCode="-1" />
      <error statusCode="403" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="https://www.hihosting.hinet.net/" responseMode="Redirect" />
    </httpErrors>
    <rewrite>
      <rules>
        <rule name="redirect HTTP to HPPTS" stopProcessing="true">
          <match url="(.*)" />
          <conditions>
            <add input="{HTTPS}" pattern="^OFF$" />
          </conditions>
          <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" />
        </rule>
      </rules>
    </rewrite>
  </system.webServer>
  <system.web>
    <machineKey validation="SHA1" />
    <compilation tempDirectory="D:\UserData\vhosts\kms.com.tw\tmp" />
  </system.web>
</configuration>