Apache HTTPD for Docker

JFrog Artifactory Documentation

JFrog Artifactory
Content Type
User Guide

Copy the code snippet generated by the configuration generator into your artifactory-apache.conf file and place it in your /etc/apache2/sites-available directory.

Create the following symbolic link:

sudo ln -s /etc/apache2/sites-available/artifactory-apache.conf /etc/apache2/sites-enabled/artifactory-apache.conf


The httpd.conf header file should be tuned to work correctly using these values to avoid errors:

# Apache libraries location (should be tuned)
Define APACHE_LIB_DIR /usr/lib/apache2/modules      <---- Input fied in UI could be great

# Apache Logs (default : beside other Artifactory logs)
Define APACHE_LOG_DIR /[TheArtifactoryHome]/logs         <---- ErrorLog/CustomLog could be uncommented & Input fied in UI could be great

LoadModule proxy_module  ${APACHE_LIB_DIR}/mod_proxy.so
LoadModule rewrite_module  ${APACHE_LIB_DIR}/mod_rewrite.so
LoadModule proxy_ajp_module  ${APACHE_LIB_DIR}/mod_proxy_ajp.so
LoadModule proxy_http_module ${APACHE_LIB_DIR}/mod_proxy_http.so
LoadModule ssl_module  ${APACHE_LIB_DIR}/mod_ssl.so       <---- Only if HTTPS used

Listen 443        <---- Only if HTTPS used
Listen XXX        <--- All port used as Docker registry