Access Manager: How to change the context root through an NGINX proxy


If you are using an environment that requires changing the context root of Access Manager, for example directing all Access Manager traffic through the path /password/ and also have an NGINX proxy system you can set the configuration to the following :

location /password/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass https://$ACCESS_MANAGER_HOST/; #$ACCESS_MANAGER_HOST being the host machine.
proxy_redirect default;