I’m using a node.js application. Everything works perfectly fine as expected in local wappler development. However, when I deploy via FTPS to my on prem IIS node.js server running as a mp2 service. The routing breaks and every single page returns the same {“status”:“404”,“message”:"/ not found."}.
The local port for the http server module is 3001 and is seen from outside the server as https://website.com using a local reverse proxy module.
I can’t for the life of me figure out how to fix this issue.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="ReverseProxyInbound" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="http://localhost:3001/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>