Each artifact stored in Artifactory contains a list of general information. One of these items is the ‘URL to file’ property which is the URL pointing to the file location. The value of this URL stems from the Artifactory custom base URL.
In certain cases, the value of the ‘URL to file’ value can become corrupted due to misconfiguration on the reverse proxy side of things. For example, the value may have the following format:
In order to solve this, we need to ensure that the reverse proxy correctly bases the base URL to Artifactory. Please see the following for examples of this for both Apache and NGINX.
If the desired custom base URL has a value of BASE_URL, use the following lines:
RequestHeader set X-Artifactory-Override-Base-Url
RequestHeader set X-JFrog-Override-Base-Url