Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi I have Umbraco working in a load balanced environment. I want to stop editors from being able to log on to the backend on one of the servers. Just wondering does anybody have an example of a rewrite rule that does this? Thanks in advance
Hi lori,
You could do something like this :
<rule name="Backoffice access" enabled="true"> <match url="^umbraco(#/)?(#)?(.*)"/> <conditions logicalGrouping="MatchAll"> <add input="{R:0}" pattern="^umbraco/masterpages/?" ignoreCase="true" negate="true"/> <add input="{R:0}" pattern="^umbraco/RestServices/?" ignoreCase="true" negate="true"/> <add input="{R:0}" pattern="^umbraco/webservices/?" ignoreCase="true" negate="true"/> <add input="{R:0}" pattern="^umbraco/Surface/?" ignoreCase="true" negate="true"/> <add input="{R:0}" pattern="^umbraco/api/?" ignoreCase="true" negate="true"/> <add input="{R:0}" pattern="^umbraco/ping.aspx" ignoreCase="true" negate="true"/> <add input="{HTTP_HOST}" pattern="^domainofeditorserver$" ignoreCase="true" negate="true"/> </conditions> <action type="Redirect" url="http://{HTTP_HOST}/"/> </rule>
You will need to replace domainofeditorserver with the actual domain of your master or editing server.
domainofeditorserver
Dave
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Umbraco rewrite rule to hide /umbraco
Hi I have Umbraco working in a load balanced environment. I want to stop editors from being able to log on to the backend on one of the servers. Just wondering does anybody have an example of a rewrite rule that does this? Thanks in advance
Hi lori,
You could do something like this :
You will need to replace
domainofeditorserver
with the actual domain of your master or editing server.Dave
is working on a reply...