url rewriting - URL Rewrite to external website not working on IIS 8.5 but works on IIS 7.5 -
<rule name="reverse proxy externalwebsite.com" stopprocessing="true"> <conditions> <add input="{request_filename}" matchtype="isfile" negate="true" /> </conditions> <match url="/(.*).cgi" /> <action type="rewrite" url="http://externalwebsite.com/cgi_bin/{r:0}" logrewrittenurl="true" /> <servervariables> <set name="http_referer" value="http://externalwebsite.com" /> </servervariables> </rule>
basically, want rewrite request internalwebsite.com/cgi_bin/*.cgi
externalwebsite.com/cgi_bin/*.cgi
above rule works on windows 7 system iis7.5 version. doesn't work on windows 8.1 system iis8.5. gives generic 404.4 error.
i've made sure url rewrite module , application request routing module installed on both systems. guesses on can wrong?
i had missed silly thing.
make sure root node selected. application request routing > server proxy settings (right pane) > enable > apply.
that's it. required on windows 7 , iis 7.5. had done , forgot same on iis8.5.
Comments
Post a Comment