Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Damon 217 posts 288 karma points
    Jan 05, 2016 @ 10:09
    Damon
    0

    Best way to turn off the back office on a given server?

    Hi,

    if we want to turn off the back office on the live server, what is a robust way to do this? Or can the default umbraco directory simply be renamed so it is not so obvious. May not want to repoint it just yet as other packages may reply on it,

    Thanks a lot!

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Jan 05, 2016 @ 10:19
    Dennis Aaen
    1

    Hi Damon,

    You could use a rewrite rule, based on this http://tcmorris.net/blog/custom-domain-for-umbraco/ article this rule should work,

     <rewrite>
            <rules>
                <!-- Restrict access to Umbraco -->
                <rule name="Restrict access" stopProcessing="true">
                    <match url="umbraco(?!/Surface/)(?!/Api/)(?!/api/)(?!/webservices/)" />
                    <conditions logicalGrouping="MatchAny" trackAllCaptures="false">
                        <add input="{HTTP_HOST}" pattern="(([^.]+)\.)?admin.example\.com" negate="true" />
                    </conditions>
                    <action type="Redirect" url="/not-found/" appendQueryString="false" />
                </rule>
            </rules>
        </rewrite>
    

    Hope this helps,

    /Dennis

Please Sign in or register to post replies

Write your reply to:

Draft