I need to reverse proxy to a server on non-default http/https ports (8080/8443). I used the appcmd method mentioned in the comments in this post to add the setting in IIS7:
forums.iis.net/t/1153071.aspx
When I list the contents of the webFarms (appcmd list config /section:webFarms), it shows the httpPort and httpsPort attributes:
<webFarms>
<webFarm name="myReverseProxy" enabled="true">
<applicationRequestRouting>
<protocol />
<healthCheck />
<affinity>
</affinity>
<loadBalancing />
</applicationRequestRouting>
<server address="myServer" enabled="true">
<applicationRequestRouting httpPort="8080" httpsPort="8443" />
</server>
</webFarm>
</webFarms>
But when I request a resource through the server farm, it sends the request to the reverse proxy machine on port 80 (verified using Wireshark). Is this the correct attribute, or does something else need to be added/done? Thanks for any help.