HTTP Error 404.4 - Not Found The resource you are looking for does not have a handler associated with it.
web.config
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="ReverseProxyInboundRule1" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="http://localhost:3000/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</location>
</configuration>
I want to redirect mywebsite.com
to http://localhost:3000
mywebsite.com
is in iis
and host file http://localhost:3000
is a nodejs running the website Application Request Routing
and url-rewrite
You need to enable IIS to route the requests to nodejs.
First, download the Application Request Routing either by downloading on the IIS website or using the 'Web Platform Installer' in IIS Manager.
Next, on IIS Manager, select your server and under the IIS category, open Application Request Routing Cache.
On the right side of the screen, select 'Server Proxy Settings...' and tick enable proxy in the form.
After these steps, you may be able to connect to node correctly.
For reference: https://learn.microsoft.com/en-us/iis/extensions/configuring-application-request-routing-arr/creating-a-forward-proxy-using-application-request-routing
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With