I apologize if this is an elementary situation, but I've been banging my head on it for a couple hours without success. This has been mentioned on the forum before, but I don't see explicit directions on how to accomplish this. We have a mail server with its own web server (for webmail) running on the same machine we use IIS7 on to serve our web sites. I've set the webmail server to use port 81. What I would like is to proxy external requests for mail.domain.com to localhost:81. I had no problem getting redirection to work, but due to firewall limitations, we want everything to go through port 80, so this wasn't suitable.
I've added the following server level (I trashed the "fake" webfarm I set up) rewrite rule:
<rule name="ProxyWebMail" patternSyntax="Wildcard">
<match url="*" />
<conditions>
<add input="{HTTP_HOST}" pattern="mail.domain.com" />
</conditions>
<action type="Rewrite" url="http://mail.domain.com:81/{R:0}" />
</rule>
The result of this is a 404.4 error. I don't know why IIS is complaining about a handler. Is it trying to process the php file that the webamail server is using? If anyone can provide me with some detailed guidance on how to accomplish this, I'd be most appreciative. Perhaps providing a comprehensive list of "recipes" like this as they are encountered and solved in the forum would be helpful in the ARR documentation pages.
Thank you in advance,
Josh Usovsky