Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat: How to disable Tomcat home page

Tags:

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?

like image 909
Satya Avatar asked Jan 04 '12 10:01

Satya


People also ask

How do I get Tomcat welcome page?

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.

Can I delete Tomcat ROOT folder?

Stop the Tomcat server. Navigate to the webapps folder under the Tomcat installation. Delete the existing ROOT folder.

How do I open Tomcat homepage in browser?

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.


1 Answers

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.

like image 91
Hemant Metalia Avatar answered Oct 09 '22 03:10

Hemant Metalia