我已经通过azure marketplace建立了一个ghost博客,它应该等同于从https://github.com/felixrieseberg/Ghost-Azure单击deploy to azure
假设我的网址是:blog.azurewebsites.net/
我希望它位于https://www.mycustomdomain.com/blog并且我在另一个应用程序服务中有一个主站点,比如说在main site.azurewebsites.net/这个站点有mycustomdomain.com dns,它们都是用证书设置的。
在这个站点中,我在web.config中重写了

<rule name="Reverse Proxy to blog" stopProcessing="true">
  <match url="^blog(.*)" />
  <action type="Rewrite" url="https://theblog.azurewebsites.net/blog/{R:1}" />
</rule>

目前,我正试图在登台站点中实现这一点,因此我正在查看https://mainsite-staging.azurewebsites.net/blog上的博客/
上面的重写成功地向我展示了blog.azurewebsites.net上托管的博客,而没有更改浏览器中的url。在博客中,我还将websiteurl应用程序设置为https://www.mycustomdomain.com.au/blog,因此我的规范url在博客文章中是正确的。
遗留问题
如果我单击博客中的徽标,则链接是https://the blog.azurewebsites.net,而不是https://mainsite-staging.azurewebsites.net/blog或https://www.mycustomdomain.com/blog
主页链接,即使在导航设置中指定为https://www.mycustomdomain.com/blog也链接到https://theblog.azurewebsites.net
Twitter和Facebook的共享链接基于共享https://theblog.azurewebsites.net
我在网上搜索了很久…
我回答:
原来还有一个在自述文件中没有提到的websiteurlssl应用程序设置。
我只需要把这个也设置好。

最佳答案:

原来还有一个在自述文件中没有提到的websiteurlssl应用程序设置。
我只需要把这个也设置好。
https://github.com/felixrieseberg/Ghost-Azure/issues/57