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

VirtualHost wildcard improvment in Apache 'Reverse Proxy Configuration Generator'

    Details

      Description

      Hi,

      If the Docker Reverse Proxy Settings is Port (only, Sub Domain not concerned by this part) : a definition like that could be better:

      <VirtualHost realUrlSameAsServerName:thePort>
      

      In addition, this configuration could be useless :

      ServerAlias *.url 
      

      When Apache is used for other jobs than Artifactory, using VirtualHost wildcard could have impacts.

      I can't explain why (root cause not found), but when I add some other VirtualHost in the configuration (like this one, real use case), I can't login on Artifactory when VirtualHost is wildcard.

      # Old repository URL redirection
      <VirtualHost old-repo.company.com:80>
      
        ServerName old-repo.company.com
        ErrorLog ${APACHE_LOG_DIR}/old_repo_error.log
        CustomLog ${APACHE_LOG_DIR}/old_repo.log common
      
        # Maven Client usage  
        ProxyPreserveHost on
        ProxyPassMatch "^/repository/(virtual|proxied-releases)(.*)$" "ajp://localhost:8019/artifactory/maven-virtual$2"
        ProxyPassMatch "^/repository/(company-releases|company-snapshots)(.*)$" "ajp://localhost:8019/artifactory/maven-$1$2"
        ProxyPassMatch "^/repository/(extra-libs|commercial-libs)(.*)$" "ajp://localhost:8019/artifactory/maven-psa-extra-libs$2"
      
        # Human usage
        ProxyPassMatch "^(.*)$" "ajp://localhost:8019/artifactory$1"
       
      </VirtualHost>
      

      Best regards.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              axel3rd Alix Lourme
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: