Removing the 'crowd' Context from the Application URL
For many different reasons, when using the Crowd distribution, you may want to access the Crowd console using http://localhost:8095 instead of http://localhost:8095/crowd.
To remove the /crowd part from the URL:
In
<Crowd-Install>/build.propertiesset the crowd.url variable to the following:# Crowd context root crowd.url=http://localhost:8095/Run
<Crowd-Install>/build.sh(UNIX) or<Crowd-Install>\build.bat(Windows).Change your
<Crowd-Install>/apache-tomcat/conf/server.xmlfile to include the following element in the Host section configuration:<Context path="" docBase="../../crowd-webapp" debug="0"> <Manager pathname="" /> </Context>Sample Host configuration:
<Engine defaultHost="localhost" name="Catalina"> <Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true"> <Context path="" docBase="../../crowd-webapp" debug="0"> <Manager pathname="" /> </Context> <Valve className="org.apache.catalina.valves.ErrorReportValve" showReport="true" showServerInfo="false" /> </Host> </Engine>- Perform a backup of the
crowd.xmlfile in<Crowd-Install>/apache-tomcat/conf/Catalina/localhostto another directory. - From
<Crowd-Install>/apache-tomcat/conf/Catalina/localhost, remove thecrowd.xmlfile to prevent Tomcat from loading the /crowd context. - After the restart, in the Server Settings screen, change the base URL.
Last modified on Jun 22, 2020
Powered by Confluence and Scroll Viewport.