How do I setup Artifactory to run as the “ROOT” (through the server.xml)

If you wish to remove the ‘/artifactory’ application context from your Artifactory URL, you can do so with these steps:

  1. Stop Artifactory.
  2. Move $ARTIFACTORY_HOME/tomcat/conf/Catalina/localhost/artifactory.xml to a different directory out of Artifactory (in case you need to restore it).
  3. Move $ARTIFACTORY_HOME/tomcat/webapps/ROOT directory out of artifactory as well.
  4. Edit server.xml file in $TOMCAT_HOME/conf (by default located in the $ARTIFACTORY_HOME/tomcat/conf) as shown in the below example:

 

<Server port="8035" shutdown="SHUTDOWN"><Service name="Catalina"><Connector port="8081"/><Engine name="Catalina" defaultHost="localhost"><Host name="localhost" appBase="webapps"><Context path="" docBase="${artifactory.home}/webapps/artifactory.war" processTlds="false"><Manager pathname="" /></Context></Host></Engine></Service></Server>

 

        5. Start the Artifactory instance for these steps to take affect.