Server

HOWTO: Change Context Path

Updated: December 19, 2024

The Nuxeo Platform offers the capability to change the context path, i.e. /nuxeo in the URL of your application.

This configuration is done in two steps:

  1. Edit the configuration file nuxeo.conf to change the property org.nuxeo.ecm.contextPath.

    org.nuxeo.ecm.contextPath=/myapp
    
    # if you have configured nuxeo.url, update it as well
    nuxeo.url=http://localhost:8080/myapp
    
  2. Rename the file $NUXEO_HOME/templates/common-base/conf/Catalina/localhost/nuxeo.xml.nxftl into $NUXEO_HOME/templates/common-base/conf/Catalina/localhost/myapp.xml.nxftl.