Skip to content

Instantly share code, notes, and snippets.

@tcmorris
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tcmorris/832845741d6abe6e09d0 to your computer and use it in GitHub Desktop.
Save tcmorris/832845741d6abe6e09d0 to your computer and use it in GitHub Desktop.
Using a custom domain for accessing umbraco
<!-- Restrict access to Umbraco -->
<rule name="Restrict access" stopProcessing="true">
<match url="umbraco(?!/Surface/)" />
<conditions logicalGrouping="MatchAny" trackAllCaptures="false">
<add input="{HTTP_HOST}" matchType="Pattern" pattern="admin.example.com"
ignoreCase="true" negate="true" />
</conditions>
<action type="Redirect" url="/not-found" appendQueryString="false" />
</rule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment