Reputation: 32218
I get the following message when I access IP provided by my ISP.
If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!
As you may have guessed by now, this is the default Tomcat home page. It can be found on the local filesystem at:
$CATALINA_HOME/webapps/ROOT/index.html
where "$CATALINA_HOME" is the root of the Tomcat installation directory.
I want to change this default index.html page. Is there any one unix command to find the location of this index.html?
EDIT: I located the ROOT folder. Another issue that I am facing is that my PHP page does not work here. But if I use php phppage.php at command line, it does work as expected.
Upvotes: 0
Views: 43047
Reputation: 6695
Your PHP page does not work because Tomcat does not run PHP pages; it is a Java servlet container.
Upvotes: 3
Reputation: 1637
echo $CATALINA_HOME/webapps/ROOT/
to display it, or
cd $CATALINA_HOME/webapps/ROOT/
to change to the directory.
Upvotes: 4