82 lines
3.7 KiB
XML
82 lines
3.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
如需如何設定 ASP.NET 應用程式的詳細資訊,請前往
|
|
https://go.microsoft.com/fwlink/?LinkId=169433
|
|
-->
|
|
<configuration>
|
|
<connectionStrings>
|
|
<add name="DBConnectionString" connectionString="Data Source=sql.bremen.com.tw;Initial Catalog=short_url;User ID=short_url;Password=B1ba68^n;Max Pool Size=17500;Connection Lifetime=3;" providerName="System.Data.SqlClient" />
|
|
<add name="ElabConnectionString" connectionString="Data Source=sql.bremen.com.tw;Initial Catalog=elab;User ID=elab;Password=2#2k9Vfg;" />
|
|
</connectionStrings>
|
|
<system.web>
|
|
<customErrors mode="On" defaultRedirect="auth-error-v3.html">
|
|
<error statusCode="404" redirect="auth-error-v3.html" />
|
|
<error statusCode="403" redirect="auth-error-v3.html" />
|
|
</customErrors>
|
|
<compilation debug="true" targetFramework="4.7.2" tempDirectory="C:\Inetpub\vhosts\bremen.tw\tmp" />
|
|
<httpRuntime targetFramework="4.7.2" requestValidationMode="2.0" maxRequestLength="40960" />
|
|
<pages enableViewStateMac="false" enableEventValidation="false" viewStateEncryptionMode="Never" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
|
|
<namespaces>
|
|
<clear />
|
|
<add namespace="System" />
|
|
<add namespace="System.Collections" />
|
|
<add namespace="System.Collections.Generic" />
|
|
<add namespace="System.Collections.Specialized" />
|
|
<add namespace="System.Configuration" />
|
|
<add namespace="System.Text" />
|
|
<add namespace="System.Text.RegularExpressions" />
|
|
<add namespace="System.Linq" />
|
|
<add namespace="System.Xml.Linq" />
|
|
<add namespace="System.Web" />
|
|
<add namespace="System.Web.Caching" />
|
|
<add namespace="System.Web.SessionState" />
|
|
<add namespace="System.Web.Security" />
|
|
<add namespace="System.Web.Profile" />
|
|
<add namespace="System.Web.UI" />
|
|
<add namespace="System.Web.UI.WebControls" />
|
|
<add namespace="System.Web.UI.WebControls.WebParts" />
|
|
<add namespace="System.Web.UI.HtmlControls" />
|
|
<add namespace="System.Data" />
|
|
<add namespace="System.Runtime.Serialization.Json" />
|
|
<add namespace="System.IO.Compression" />
|
|
<add namespace="System.Threading" />
|
|
<add namespace="System.IO" />
|
|
<add namespace="System.Collections.Generic" />
|
|
</namespaces>
|
|
</pages>
|
|
</system.web>
|
|
<system.webServer>
|
|
<defaultDocument>
|
|
<files>
|
|
<clear />
|
|
<add value="redir.aspx" />
|
|
</files>
|
|
</defaultDocument>
|
|
<httpErrors errorMode="DetailedLocalOnly" existingResponse="Replace" defaultResponseMode="ExecuteURL">
|
|
<remove statusCode="404" subStatusCode="-1" />
|
|
<remove statusCode="500" subStatusCode="-1" />
|
|
<error statusCode="404" path="auth-error-v3.html" responseMode="File" />
|
|
<error statusCode="500" path="auth-error-v3.html" responseMode="File" />
|
|
</httpErrors>
|
|
<httpProtocol>
|
|
<customHeaders>
|
|
<add name="Access-Control-Allow-Headers" value="Origin, X-Requested-With, Content-Type, Accept" />
|
|
</customHeaders>
|
|
</httpProtocol>
|
|
<rewrite>
|
|
<rules>
|
|
<rule name="HTTP to HTTPS redirect" stopProcessing="true">
|
|
<match url="(.*)" />
|
|
<conditions>
|
|
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
|
|
</conditions>
|
|
<action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
|
|
</rule>
|
|
<rule name="Rewrite to redir.aspx">
|
|
<match url="^([0-9a-zA-Z]+[0-9a-zA-Z/_/-]+[0-9a-zA-Z]+)$" />
|
|
<action type="Rewrite" url="redir.aspx?code={R:1}" />
|
|
</rule>
|
|
</rules>
|
|
</rewrite>
|
|
</system.webServer>
|
|
</configuration> |