Browse Source

Log and redirect fix

pull/1/head
Sebastian 10 years ago
parent
commit
2d538dd0d7
  1. 2
      src/Squidex/Pipeline/SingleUrlsMiddleware.cs
  2. 2
      src/Squidex/web.config

2
src/Squidex/Pipeline/SingleUrlsMiddleware.cs

@ -27,7 +27,7 @@ namespace Squidex.Pipeline
public async Task Invoke(HttpContext context)
{
var currentUrl = string.Concat(context.Request.Scheme, "//:", context.Request.Host, context.Request.Path);
var currentUrl = string.Concat(context.Request.Scheme, "://", context.Request.Host, context.Request.Path);
var hostName = context.Request.Host.ToString().ToLowerInvariant();
if (hostName.StartsWith("www"))

2
src/Squidex/web.config

@ -4,6 +4,6 @@
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
</handlers>
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false"/>
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="true" stdoutLogFile="C:\\Logs\squidex\stdout" forwardWindowsAuthToken="false"/>
</system.webServer>
</configuration>

Loading…
Cancel
Save