Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-16130

In some cases Access to Access in HA will not work with Tomcat and/or Network (reverse proxies) configurations

    Details

      Description

      emphasized textGoing from 5.6.0, Access runs on its own connector and/or can be access via Artifactory connector with the /access context.

      This can cause issues when:

      1. A reverse proxy is used behind each Artifactory node, a the context.url (under ha-node.properties) could, and is, binded to the Reverse proxy (e.g. Nginx) Virtualhost/listener port; e.g.:

      context.url=192.168.59.2:80/artifactory

      And, since by default, Artifactory's snippet generator is not taking care of the access servlet.

      This can be handled by adding another directive that would make the reverse proxy forward requests to the Access context, e.g. with Nginx use the location directive for /access/ (same as /artifactory/):

      location /access/ {
      
              proxy_read_timeout  900;
      
              proxy_pass_header   Server;
      
              proxy_cookie_path   ~*^/.* /;
      
              if ( $request_uri ~ ^/access/(.*)$ ) {
      
                  proxy_pass          http://artifactory/access/$1;
      
              }
      
              proxy_pass          http://artifactory/access/;
      
              proxy_next_upstream http_503 non_idempotent;
      
              proxy_set_header    X-Artifactory-Override-Base-Url https://$host/access;
      
              proxy_set_header    X-Forwarded-Port  443;
      
              proxy_set_header    X-Forwarded-Proto https;
      
              proxy_set_header    Host              $host;
      
              proxy_set_header    X-Forwarded-For   $proxy_add_x_forwarded_for;
      
          }

      2. Artifactory runs on the ROOT virtual listener of Tomcat:

      https://jfrog.com/knowledge-base/how-do-i-setup-artifactory-to-run-as-the-root-application-in-tomcat/

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              andreik Andrei Komarov
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: