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

If you need to remove the '/artifactory' subdirectory from the context URL, this can be done by:

1. Stop Artifactory.

2. Move $ARTIFACTORY_HOME/tomcat/conf/Catalina/localhost/artifactory.xml to a different directory out of Artifactory. Save it incase needed in the future.

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 the steps to take affect.