The following steps can be used to enable debug logging on nginx routers to capture more information. This is useful in troubleshooting issues with 2-Way TLS setup etc.
On the nginx router(s), perform the following steps:
- Edit file the /opt/nginx/conf/nginx.conf:
- Change the line
error_log /opt/nginx/logs/error.log crit;
to
error_log /opt/nginx/logs/error.log debug;
- Edit the file /opt/nginx/conf.d/.conf (For example: myorg_prod_secure.conf):
- Change the line
error_log /opt/apigee/var/log/edge-router/nginx/<orgname>~<envname>.<port>_error_log error;
to
error_log /opt/apigee/var/log/edge-router/nginx/<orgname>~<envname>.<port>_error_log debug;
- Run nginx reload command
/opt/nginx/scripts/apigee-nginx reload
- The below 2 files will now capture debug information:
/opt/apigee/var/log/edge-router/nginx/<orgname>~<envname>.<port>_error_log
and
/opt/nginx/logs/error.log