use iis static module
This commit is contained in:
@@ -129,10 +129,10 @@
|
|||||||
<Reference Include="System.EnterpriseServices" />
|
<Reference Include="System.EnterpriseServices" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="Content\robots.txt">
|
<Content Include="robots.txt">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="Content\sitemap.xml">
|
<Content Include="sitemap.xml">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="packages.config" />
|
<Content Include="packages.config" />
|
||||||
|
|||||||
@@ -5,15 +5,15 @@ namespace AboutMe.Web.AppStart
|
|||||||
{
|
{
|
||||||
public class Bootstrap : DefaultNancyBootstrapper
|
public class Bootstrap : DefaultNancyBootstrapper
|
||||||
{
|
{
|
||||||
protected override void ConfigureConventions(NancyConventions conventions)
|
//protected override void ConfigureConventions(NancyConventions conventions)
|
||||||
{
|
//{
|
||||||
base.ConfigureConventions(conventions);
|
// base.ConfigureConventions(conventions);
|
||||||
|
|
||||||
conventions.StaticContentsConventions.AddDirectory("Images");
|
// conventions.StaticContentsConventions.AddDirectory("Images");
|
||||||
conventions.StaticContentsConventions.AddDirectory("Scripts");
|
//conventions.StaticContentsConventions.AddDirectory("Scripts");
|
||||||
conventions.StaticContentsConventions.AddDirectory("fonts");
|
//conventions.StaticContentsConventions.AddDirectory("fonts");
|
||||||
conventions.StaticContentsConventions.AddFile("/robots.txt",System.IO.Path.Combine("Content", "robots.txt"));
|
// conventions.StaticContentsConventions.AddFile("/robots.txt",System.IO.Path.Combine("Content", "robots.txt"));
|
||||||
conventions.StaticContentsConventions.AddFile("/sitemap.xml", System.IO.Path.Combine("Content", "sitemap.xml"));
|
// conventions.StaticContentsConventions.AddFile("/sitemap.xml", System.IO.Path.Combine("Content", "sitemap.xml"));
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
<remove name="TRACEVerbHandler" />
|
<remove name="TRACEVerbHandler" />
|
||||||
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
|
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
|
||||||
</handlers>
|
</handlers>
|
||||||
<modules runAllManagedModulesForAllRequests="true">
|
<modules runAllManagedModulesForAllRequests="false">
|
||||||
<remove name="ApplicationInsightsWebTracking" />
|
<remove name="ApplicationInsightsWebTracking" />
|
||||||
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Extensibility.Web.RequestTracking.WebRequestTrackingModule, Microsoft.ApplicationInsights.Extensibility.Web" preCondition="managedHandler" />
|
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Extensibility.Web.RequestTracking.WebRequestTrackingModule, Microsoft.ApplicationInsights.Extensibility.Web" preCondition="managedHandler" />
|
||||||
</modules>
|
</modules>
|
||||||
|
|||||||
Reference in New Issue
Block a user