Suppose:
Web Application Directory: "example"
What is easy:
localhost:8080/webapps/example/intro.html
What I want:
localhost:8080/example/intro.html
Solution:
There's a hint on the welcome page when you enter: localhost:8080 which says,
This is the default Tomcat home page. It can be found on the local filesystem at:
Tomcat7 veterans might be pleased to learn that this system instance of Tomcat is installed with
Therefore, you can install your own web applications under this directory - /usr/share/tomcat7/webapps - to access
Web Application Directory: "example"
What is easy:
localhost:8080/webapps/example/intro.html
What I want:
localhost:8080/example/intro.html
Solution:
There's a hint on the welcome page when you enter: localhost:8080 which says,
It works !
If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!This is the default Tomcat home page. It can be found on the local filesystem at:
/var/lib/tomcat7/webapps/ROOT/index.html
Tomcat7 veterans might be pleased to learn that this system instance of Tomcat is installed with
CATALINA_HOME
in /usr/share/tomcat7
and CATALINA_BASE
in /var/lib/tomcat7
, following the rules from /usr/share/doc/tomcat7-common/RUNNING.txt.gz
.Therefore, you can install your own web applications under this directory - /usr/share/tomcat7/webapps - to access
댓글
댓글 쓰기