I am attempting to set up a blog using Ghost hosted on Windows Azure.
I have deployed and get everything set up using the pre-configured repo created by AzureWebApps on GitHub.
Everything is worked as expected and I have configured records on my own domain name which are working as you navigate to the site.
The issue I have is that the *.azurewebsites.net domain name appears in search engine results and when you navigate (for example, to www.mysite.com/rss) it switches out the custom domain name and replaces it with the builtin azurewebsites one.
looking at the web.config, there are two rewrite rules
<rules>
<rule name="StaticContent">
<action type="Rewrite" url="public{REQUEST_URI}"/>
</rule>
<rule name="DynamicContent">
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="True"/>
</conditions>
<action type="Rewrite" url="index.js"/>
</rule>
</rules>
I found a chap named Gareth had done a post about a rewrite rule that will "block" the *.azurewebsites.net domain, and I put this rule into the rule set above the default two, and this got me almost there. The rss link now works.
The issue now arises when I navigate to www.mysite.com/ghost (which is the admin page, on https) it complains that there are too many rewrite rules.
I can see why this is the case, but I can't figure out a combination of rules to satisfy launching the webapp with the custom domain and being able to navigate to other pages within the site. I'm pretty sure it's something obvious.