I deployed my application in Tomcat and the application path is:
http://localhost:8080/myapp
but I want to restrict my users to not see Tomcat home page i.e. if they enter:
http://localhost:8080
the home page shouldn't appear. What should I do?
ROOT folder has config files for 'Welcome' page for tomcat. You can copy it from the other tar file into ../webapps folder and you'll be good. Symlinking ROOT to your webapp's folder does a great job and adds a little bit more flexibility.
Stop the Tomcat server. Navigate to the webapps folder under the Tomcat installation. Delete the existing ROOT folder.
Use a browser to check whether Tomcat is running on URL http://localhost:8080 , where 8080 is the Tomcat port specified in conf/server. xml. If Tomcat is running properly and you specified the correct port, the browser displays the Tomcat homepage.
refer How to Change Default Homepage in Tomcat
EDIT:
link is broked so you can try following:
The easiest would be to have the Tomcat home page (TOMCAT_HOME/webapps/ROOT/index.jsp) perform a redirect to your start page.
Or, if you have just a single web app, you can move that to the ROOT web app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With