Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hi,
I'm looking for a solution to add a reverse proxy in place to route traffic to external links and use the domain URL as it's.
This is feasible as mentioned in the following links https://ruslany.net/2014/05/using-azure-web-site-as-a-reverse-proxy/ and https://world.episerver.com/blogs/david-buo/dates/2017/11/support-for-applicationhost-transforms-in-dxc-service/
I've made the changes as said in these links, but it doesn't seems to be working. My changes are below
added applicationHost.xdt file in site folder as below
<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.webServer>
<proxy xdt:Transform="InsertIfMissing" enabled="true" preserveHostHeader="false" reverseRewriteHostInResponseHeaders="false" />
</system.webServer>
</configuration>
2. added rewrite rule in config file
<rule name="Proxy" stopProcessing="true">
<match url="^/xyz?(/)?$" />
<action type="Rewrite" url="https://www.google.com" />
</rule>
the above still returns 404 error for http://domainname.com/xyz/, i tried adding route ignore as said in the first link but still no luck. i.e., routes.IgnoreRoute("xyz/"); in global.asax.cs file.
I'm not sure if i'm missing anything. this is very urgent requirement to deliver asap.
Any help is much appreciated.
Thanks,
Suresh