Open iskiselev opened 3 years ago
Issue is duplicate of tjanczuk/iisnode#217. PR that should solve it (tjanczuk/iisnode#486) still not merged. Workaround suggested in https://github.com/tjanczuk/iisnode/issues/217#issuecomment-206953773 works perfectly.
To modify applicationhost.config in azure next applicatiohost.xdt can be used:
<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<configSections>
<sectionGroup name="system.webServer" xdt:Locator="Match(name)">
<sectionGroup name="rewrite" xdt:Locator="Match(name)">
<section name="allowedServerVariables" overrideModeDefault="Allow" xdt:Transform="SetAttributes" xdt:Locator="Match(name)" />
</sectionGroup>
</sectionGroup>
</configSections>
<system.webServer>
<rewrite>
<allowedServerVariables>
<add name="HTTP_X_ORIGINAL_URL" xdt:Transform="InsertIfMissing" xdt:Locator="Match(name)" />
</allowedServerVariables>
</rewrite>
</system.webServer>
</configuration>
When request is transferred from IIS to Node, it is decoded. I do request to
http://.../%24%3A%2Fcore%2Ftemplates%2Ftiddlywiki5.js
.I got next application output when it is executed on node natively:
When I run similar in Azure App Service with IISNode I got next output:
So, instead of original request, I got request to:
/$:/core/templates/tiddlywiki5.js