ProxyPass works only under localhost?

Topics: User Forum
Apr 23, 2012 at 10:01 AM
Edited Apr 24, 2012 at 11:27 AM


I'm a newbie so maybe I did something wrong btw this is my situation.

One ii6 is serving several sites under same port 80 but different host header value.

Under one specific web site I'd like to reverse to proxy to an internal IIS so I wrote this script:



# Iirf.ini

RewriteLog C:\Inetpub\Logs\iirf\
RewriteLogLevel 4
#IterationLimit 10
MaxMatchCount 10
RewriteEngine ON
StatusInquiry ON

RewriteCond %{HTTP_HOST}   ^mysite\.servehttp\.com$  [I]
#RewriteCond %{HTTP_HOST}   ^localhost:83$  [I]
ProxyPass          ^/(.*)$   http://srv03:81/$1

This script doesn't work but If I change the IIS listening port from 80 up to 83 and remove the host header value, the script above works using 


RewriteCond %{HTTP_HOST}   ^localhost:83$  [I]

Is there anybody can help me to fix it?
Thanks in advance.