在Azure中托管的站点通过Go Daddy注册,具有安全性和证书问题

时间:2015-07-08 04:10:03

标签: azure ssl

我已经在Go Daddy注册了一个域名,我已经通过更新Go Daddy中的C Name和A记录指向我的Azure站点,将其路由回Azure。并且,我已使用以下信息更新了我的webconfig文件。我可以导航到该网站,但在浏览时会收到一堆证书和安全错误,说明该网站可能不安全。有没有人之前遇到过这种情况,如果有的话,我在Web配置文件中缺少什么或者我需要在Go Daddy和/或Azure中配置的证书问题?提前感谢您的帮助。

<rewrite>
  <rules>
    <rule name="Redirect old-domain to new-domain" stopProcessing="true">
      <match url=".*" />
      <conditions>
        <add input="{HTTP_HOST}" pattern="^lazyquiz.azurewebsites.net$" />
      </conditions>
      <action type="Redirect" url="http://www.lazyquiz.com/{R:0}" appendQueryString="true" redirectType="Permanent" />
    </rule>
    <rule name="WWW Rewrite" enabled="true">
      <match url="(.*)" />
      <conditions>
        <add input="{HTTP_HOST}" negate="true" pattern="^www\." />
        <add input="{HTTP_HOST}" negate="true" pattern="localhost" />
      </conditions>
      <action type="Redirect" url="https://www.{HTTP_HOST}/{R:0}" appendQueryString="true" redirectType="Permanent" />
    </rule>
  </rules>
</rewrite>

0 个答案:

没有答案