Skip to end of metadata
Go to start of metadata
Table of Contents

Note: This space is for Artifactory 2.0.
Take me to the latest version!

Setting up Apache HTTPD as a Front-end to Artifactory

You may want to a use Artifactory behind Apache HTTPD. For this, you need to have Apache compiled with mod_proxy enabled.

The sample virtual host refers to Apache as a reverse proxy to Tomcat, where Tomcat runs with the AJP connector on port 8009 (please consult the relevant Tomcat docs for connector configuration). The commented out section refers to Apache in front of Jetty using direct HTTP proxying (we do not recommend using AJP with Jetty, especially if SSL is active on the Apache side).

<VirtualHost *:80>
    ServerAdmin your@email.address.com
    DocumentRoot "/srv/www/httpd/htdocs"
    ServerName artifactory.yourdomain.com
    ErrorLog "logs/artifactory-error_log"

    ProxyPreserveHost on

    # Use with Tomcat with the AJP connector
    ProxyPass /artifactory/ ajp://localhost:8009/artifactory/
    ProxyPassReverse /artifactory/ ajp://localhost:8009/artifactory/

    # Use this with standalone Jetty without AJP
    #ProxyPass /artifactory/ http://localhost:8081/artifactory/
    #ProxyPassReverse /artifactory/ http://localhost:8081/artifactory/
</VirtualHost>
  • No labels