how to remove tomcat port number 8080 from localhost url using java code in web aplication -


when run web aplication on server have default port http://localhost:8080/demo/ want hide or remove 8080 port number our aplication using java code http://localhost/demo/ whole application

you don't have change using java code. change port "80" instead default "8080" in server.xml file in tomcat conf folder. more info: https://tomcat.apache.org/tomcat-8.0-doc/config/server.html

you can use reverse proxy. if use apache: https://httpd.apache.org/docs/current/mod/mod_proxy.html


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -