2017-09-27 132 views
0

我試圖刪除SSL證書後,所有https流量重定向到http,但規則似乎沒有工作。我已經從前面的例子中解除了以下規則,但是在任何情況下它仍然指向https版本。任何想法出了什麼問題?https到Http規則重寫Azure

<rule name="Force HTTPS to HTTP" enabled="true"> 
     <match url="(.*)" ignoreCase="true" /> 
     <conditions> 
     <add input="{HTTPS}" pattern="off" ignoreCase="true" /> 
     </conditions> 
     <action type="Redirect" url="http://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent" /> 
    </rule> 

如果我輸入https://www.example.com它不重定向。它試圖擊中那個實際的網站。 非常感謝

+0

如果沒有證書,如何將任何人接近你的SSL網站都被重定向?不要刪除SSL,事實上,換個方式讓所有的東西都安全 - 這些天你可以免費使用! – DavidG

回答

1

@DavidG在評論是正確的。你的規則也有條件上的小錯誤。相反

<add input="{HTTPS}" pattern="off" ignoreCase="true" /> 

你應該有

<add input="{HTTPS}" pattern="on" ignoreCase="true" /> 
+0

謝謝,我想「刪除」SSL的原因是我從基本級別降級到共享網站,而後者不提供SSL。 – Adrian