ARTIFACTORY: How to Debug Nginx Reverse Proxy Issues

ARTIFACTORY: How to Debug Nginx Reverse Proxy Issues

AuthorFullName__c
Yonatan Brand
articleNumber
000002810
FirstPublishedDate
2019-04-22T11:23:12Z
lastModifiedDate
2025-05-14
VersionNumber
6

There are many reasons why you should use a reverse proxy in front of our JFrog product. The two most common scenarios are when:

  1. You have several nodes and you want to set up a load balancer between them
  2. You need to redirect requests to a specific port

In some instances, requests won't reach a JFrog product as a result of a reverse proxy issue.
Accordingly, it's wise to enable Nginx logging, as it may help you to identify the root cause of of a
given problem. You can do this by adding the following lines under the server block of your
configuration file:

access_log /var/log/nginx/$NAME_OF_LOG_FILE-access.log timing; //This will enable the Nginx access log

error_log /var/log/nginx/$NAME_OF_LOG_FILE-error.log debug; //This will enable the Nginx error log with debug mode