NGINX Configuration Tips
Many configuration parameters of NGINX can be customized. This page provides tips to take care of the most usual ways to customize NGINX configuration.
View/Modify Route Lookup Handlers (garpu)
The command zmprov garpu (get all reverse proxy urls) gives a list of all the route lookup handlers used by NGINX for mail/web route discovery.
zmprov garpu will list all the servers for which the zimbraReverseProxyLookupTarget attribute is TRUE.
Therefore, to add a server to the route lookup handler list, execute the command:
zmprov ms <server> zimbraReverseProxyLookupTarget TRUE
To remove a server from the route lookup handler list, execute the command:
zmprov ms <server> zimbraReverseProxyLookupTarget FALSE
NOTE: Only add servers running the mailbox service to the route lookup handler list. This is because the URL used by NGINX is of the form http://<server>:7072/service/extension/nginx-lookup - and this URL is handled by jetty.