The following assumes you're using a dedicated Tomcat instance to run Artifactory and that you've used their $ARTIFACTORY_HOME/bin/tomcat-install.sh script to do a standard installation, so that Artifactory is listening on http://yourhost.yourdomain:8081/artifactory, with an AJP listener on port 8019.
Install mod_proxy_ajp:
sudo a2enmod proxy_ajp
Set up the Apache site configuration to proxy requests to Artifactory - default config file under Ubuntu is /etc/apache2/sites-enabled/000-default
ProxyPreserveHost on
ProxyPass / ajp://localhost:8019/artifactory/
ProxyPassReverse / http://yourhost.yourdomain/artifactory
ProxyPassReverseCookiePath /artifactory/ /
Add these lines just before the end of the VirtualHost section.
Restart Apache:
sudo service apache2 restart
Now Artifactory should respond on http://yourhost.yourdomain
Finally, go to the Admin tab in Artifactory, select General in the left toolbar and set the Custom URL Base field to http://yourhost.yourdomain
Thanks for sharing these.
ReplyDeleteIt’s always useful to get pointers to the good blogs out there.
You might also be interested to know more about our company -
Parana Impact, which is one of the leading database marketing,
data intelligence and digital marketing service provider.
Atlassian Users Email List Suitable to small scale to large scale companies which will focus on driving more revenue and increase profitability.