I am working on setting up IIS 7.5 to do reverse proxy for a subdirectory of my site.
Here is the web.config url-rewrite:
<clear />
<rule name="Reverse Proxy to Community" stopProcessing="true">
<match url="^community/qa/(.*)" />
<action type="Rewrite" url="http://xxx.xxx.xxx.xxx/{R:1}" logRewrittenUrl="true" />
</rule>
The ip address points to a networked linux box with apache and a django site.
What I want
All request for /community/qa/* to be redirected to the internal IP specified.
What happens
/community/qa/ - gives 404 (on main IIS server)
/community/qa/questions/ - gives 404 (on main IIS server)
- BUT -
/community/qa/questions/ask/ Works!!!
/community/qa/questions/unanswered/ Works!!
So it seems that it works for all URLs that are 2 subdirectories deep from the starting point.
This just seems odd to me, and I can not figure it out.
Thanks in advance for any help.