King0770-Notes-Disable-Zimbra-Desktop: Difference between revisions

(Created page with " == Scenario == Disable Zimbra Desktop access for your users Add user_agent check in nginx web template files to block ZD access, proxy restart is required to generate nginx...")
 
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:


== Scenario ==
== Scenario ==
Disable Zimbra Desktop access for your users
<strong>Disable Zimbra Desktop access for your users</strong>


Add user_agent check in nginx web template files to block ZD access, proxy restart is required to generate nginx include files.  
Add user_agent check in nginx web template files to block ZD access, proxy restart is required to generate nginx include files.  


Directory - /opt/zimbra/conf/nginx/templates  
Directory - /opt/zimbra/conf/nginx/templates<br>
Files to change - nginx.conf.web.http.template and nginx.conf.web.https.template
Files to change - <strong>nginx.conf.web.http.template</strong> and <strong>nginx.conf.web.https.template</strong><br>


Add below after http_cookie if block.  
Add below after http_cookie if block.<br>


<code><pre>
<code><pre>
Line 20: Line 20:
zmproxyctl restart  
zmproxyctl restart  
</pre></code>
</pre></code>
<br>
More articles written by me, https://wiki.zimbra.com/wiki/King0770-Notes
[[Category:Community Sandbox]]
[[Category:Proxy]]
[[Category:King0770-Notes]]

Latest revision as of 22:27, 5 December 2018

Scenario

Disable Zimbra Desktop access for your users

Add user_agent check in nginx web template files to block ZD access, proxy restart is required to generate nginx include files.

Directory - /opt/zimbra/conf/nginx/templates
Files to change - nginx.conf.web.http.template and nginx.conf.web.https.template

Add below after http_cookie if block.

if ($http_user_agent ~* "Zimbra Desktop") { 
return 403; 
} 

Restart Proxy service

zmproxyctl restart 


More articles written by me, https://wiki.zimbra.com/wiki/King0770-Notes

Jump to: navigation, search