How to change Hybris server's port

Alex picture Alex · Jul 18, 2013 · Viewed 16.3k times · Source

The default port is http://localhost:9001.

How do I run the hybris platform using another port?

Answer

kabadisha picture kabadisha · Oct 7, 2013

Edit your {HYBRIS_ROOT_DIR}/config/local.properties file and use the following properties to configure the various ports:

tomcat.http.port=9001
tomcat.ssl.port=9002
tomcat.ajp.port=8009
tomcat.jmx.port=9003
tomcat.jmx.server.port=9004

You can find the complete configuration reference on the Hybris wiki here: https://wiki.hybris.com/display/release5/Configuration+Properties+Reference

In order for the changes to be applied you must run ant and restart Hybris.

You can run ant all, but if you have only changed the configuration you can deploy these changes without having to re-compile by using ant deploy which is much faster.