Reputation: 67
I have a server with one subdomain. On this subdomain, I want to run multiple Angular instances on different paths. For example:
On my local machine, this works fine but on the live server I always get a HTTP error 502.2 Bad Gateway - There was a connection error while trying to route the request. I already tried it with ARR 2.5 and ARR 3. The only difference between local and live I could find is the IIS version (10 local, 8.5 live) but I can't update it on live (Windows Server 2012 R2). FYI: There are no errors in the event log.
<rule name="ReverseProxyInboundRule1" stopProcessing="true">
<match url="app1/(.*)" />
<action type="Rewrite" url="http://localhost:401/{R:1}" />
</rule>
Thanks in regards
Upvotes: 0
Views: 1354
Reputation: 67
I found the answer by myself -> i forgot the "http://" in the rewrite rule"
Upvotes: 1