Change the web application name or port
The Pentaho Server and web application default port number is 8080. The default web application name is pentaho
, which is the name of the WAR file archive, the name of the directory that your application server creates, and also part of the URL structure for all content in the User Console.
If you need to change the User Console application name to something else, or if your Web application server is running on a port other than 8080, follow these instructions.
Change the web application name on Tomcat
These instructions only work on Tomcat servers that are configured to accept context.xml
overrides built into deployed WAR files. Some Tomcat deployments may not have this feature turned on. You can change the Tomcat configuration on your own, or consult your Tomcat documentation to learn about other methods of changing a web application context. Use the XML snippet in these instructions in whichever configuration file you end up creating or modifying.
Follow these instructions to change the web application context for a pentaho.war
file that you deployed to a Tomcat server. While the example below uses sample
as the context name, you can use whatever context name you choose.
Stop the server.
Open the
pentaho/server/pentaho-server/tomcat/webapps/pentaho/META-INF/context.xml
file in a text editor, and change thepentaho
references in thecontext path
tag to your preferred context name.For example, to specify a context name of
sample
, modifycontext path
as follows.<context path="/sample" docbase="webapps/sample/">
Save and close the file.
Navigate to the
pentaho/server/pentaho-server/tomcat/webapps
folder, and rename thepentaho
folder to your preferred context name. In this example, rename thepentaho
folder tosample
.Edit the
pentaho/server/pentaho-server/tomcat/webapps/ROOT/index.jsp
file to change thepentaho
reference in theURL
property to your preferred context name.In this example, use the following line of code to specify '
sample
' as the new context name:<meta http-equiv="refresh" content="0;URL=/sample">
Edit the
pentaho/server/pentaho-server/pentaho-solutions/system/server.properties
file to changepentaho
in the value of thefully-qualified-server-url
setting to your preferred context name.In this example, set the
fully-qualified-server-url
as follows.fully-qualified-server-url=http://localhost:8080/sample/
Start the server.
Last updated
Was this helpful?