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