NGINX Configuration Tips: Difference between revisions
(New page: 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 Handler...) |
|||
Line 5: | Line 5: | ||
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. | 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 | '''zmprov garpu''' will list all the servers for which zimbraReverseProxyLookupTarget is TRUE. | ||
Therefore, to add a server to the route lookup handler list, execute the command: | Therefore, to add a server to the route lookup handler list, execute the command: | ||
Line 15: | Line 15: | ||
zmprov ms <server> zimbraReverseProxyLookupTarget FALSE | 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. | '''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 <nowiki>http://<server>:7072/service/extension/nginx-lookup</nowiki> - and this URL is handled by jetty. |
Revision as of 07:43, 10 September 2008
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 zimbraReverseProxyLookupTarget 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.