I have a website on azure. Then I've created a CDN. I've a custom domain to my cdn. Now I have added this configuration on my website:
<system.webServer>
<rewrite>
<rules>
<rule name="RedirectToDomain" stopProcessing="true" patternSyntax="Wildcard">
<match url="*" />
<conditions>
<add input="{HTTP_HOST}" pattern="mysite-app-net47-test-westeu.azurewebsites.net" />
</conditions>
<action type="Redirect" url="https://test.mysite.com/{R:0}" />
</rule>
</rules>
</rewrite>
...
</system.webServer>
where https://test.mysite.com/
is a custom domain of my cdn :
But now I get this error:
I deleted cookies, I purge the cache... but I have not solved. I have tried to check redirect via redirect path
and i get this:
(first time):
and then always:
Here the request traced with fiddler... both look likes equal:
The question seems get changed instead (the second is the request toward the cdn):
How can I solve?
Thank you