media.jamesrskemp/Web.config

52 lines
1.9 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appSettings>
<add key="musicXmlLocation" value="~/App_Data/playlistXml.xml"/>
</appSettings>
<system.web>
<customErrors mode="RemoteOnly"/>
<httpRuntime requestValidationMode="2.0" requestPathInvalidCharacters=""/>
<compilation debug="true" targetFramework="4.0" />
<authentication mode="None"/>
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</modules>
<rewrite>
<rules>
<rule name="CanonicalHostNameRule1">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^media\.jamesrskemp\.com$" negate="true" />
</conditions>
<action type="Redirect" url="http://media.jamesrskemp.com/{R:1}" />
</rule>
</rules>
</rewrite>
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
</staticContent>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
</customHeaders>
</httpProtocol>
</system.webServer>
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>
<standardEndpoints>
<webHttpEndpoint>
<!--
Configure the WCF REST service base address via the global.asax.cs file and the default endpoint
via the attributes on the <standardEndpoint> element below
-->
<!-- Required for JSONP -->
<standardEndpoint name="" helpEnabled="true" automaticFormatSelectionEnabled="true" defaultOutgoingResponseFormat="Json" crossDomainScriptAccessEnabled="true" />
<!-- Required for localhost -->
<!--<standardEndpoint name="" helpEnabled="true" automaticFormatSelectionEnabled="true" />-->
</webHttpEndpoint>
</standardEndpoints>
</system.serviceModel>
</configuration>