Hi,
We used COTS production which was configured to run as a virtual dir under my company's website. At that time both my company's website and the virtual dir required application pool 2.0 hence no issue. Recently I switched the company website to the latest version hence the application pool was switched to 4.0 (it can't run on 2.0). Now the COTS couldn't run on 4.0 hence it started breaking. Tried all the different ways of getting the virtual dir run on 2.0 (by converting the virtual dir to a web app under the company website and also trying to avoid the inheritance) but it failed..
Final I got some one from StackOverflow to suggest using ARR. The idea is to host the COTS as a separate website (say A) on the same machine and route the incoming traffic to A without any redirects (302) sent to the calling application. So the idea is to use ARR to route traffic meant for one website to another webiste on the same machine behind the scene.
Now on Windows 7 64 bit I installed the latest ARR, enabled Proxy (didn't made farm), made two website and wrote rules to rewrite the URL and routing worked.
On production I have Windows 8 Standard 64 bit R2 and this routing is failing. I tried writing rules inside my company's website > web.config and also in the global area but the result is bit strange. I can see the rule is kicking (as it doesn't give an error) but it is not routing to the correct resource.
e.g. If the rule is configured to look for the string 'lic2/' theaction url is www.localhost:89 then if I write www.abc.com/lic2/ in the browser, it goes towww.abc.com instead of www.localhost:89.
My rule goes like this
<?xml version="1.0" encoding="UTF-8"?><configuration><system.webServer><rewrite><rules><rule name="Route the requests for Company1" stopProcessing="true"><match url="^lic2/(.*)" /><conditions><add input="{CACHE_URL}" pattern="^(https?)://" /></conditions><action type="Rewrite" url="{C:1}://localhost:89/{R:1}" /><serverVariables><set name="HTTP_ACCEPT_ENCODING" value="" /></serverVariables></rule></rules></rewrite></system.webServer></configuration>
Am I doing some thing wrong? Is ARR able to achieve what I am expecting?
Regards,
Wahaj