IIS Rewrite
Diskovered opened this issue · 1 comments
Diskovered commented
I have lets-chat hosted on iis under virtual folder /chat
I created the following rewrite for it, but it's not working quite right. I'm curious if anyone out there have experience with this and whether or not it's possible to host this in IIS?
<rule name="rewrite to 5000 port" enabled="false">
<match url="(.*)" />
<conditions trackAllCaptures="true">
<add input="{HTTP_HOST}" pattern="localhost" />
<add input="{SERVER_PORT}" pattern="80" />
<add input="{URL}" pattern="^/chat" />
</conditions>
<action type="Rewrite" url="http://localhost:5000/login" />
</rule>
tracker1 commented
You should be able to do this, however, does the lets-chat app run from the /login url always? it seems you should append the captured path for matching to the action... Sorry, it's been a few years since I've really had to use IIS regularly.