I cant enable SSL on the entire site as there are content related issues, but I want to selectively enforce https for some of the parent pages on my Kentico 10 site. My site is hosted in Azure but I am using my domain pointing to Azure site. When I set the 'Require SSL' property on for one of my page, the request to the page starts showing the actual domain in the address bar of the browser. Without 'Require SSL' it is fine and shows my domain properly. Can someone point to what I may be doing wrong.
Do you have an SSL cert installed for your primary domain? If not this behavior could happen
yes thats installed, if I key in https://www.domainname.com/mypage it works. But when I set the 'Require SSL' property on, the URL becomes https://azureURL/mypage.
Look at the site definition in Kentico, what is the domain set at? It should be your main URL (www.domainname.com) and not the Azure URL. Any redirects go to that main URL listed there. If you want to still access that Azure URL then list it as an alias for the site.
No, still the same, I set the domain to our main URL. This is working fine until we set Require SSL to On. But when Require SSL is turned on, looks like it is trying to do a double redirect and from Kentico it doesn’t retain the URL rewrite URL.
What aliases to you have set on the site? Do any of them redirect to another URL? Do you have any configuration in your web.config causing redirects? What about any abb settings? Do you have your main domain registered in the Azure web app?
Hi, Are there any proxy servers? The Require SSL setting only does the redirection to HTTPS protocol - there is no complicated logic. This sounds like there are some IIS URL Rewriting rules and you are masking/changing the URL on the IIS level internally and maybe it does not fits the HTTPS protocol.
Please, sign in to be able to submit a new answer.