JAVASCRIPT的,放ROOT平级,建一个目录和ROOT平级
比如AAA,网页就是HTTP://XXX:8080/AAA/a.html
jrhapt01:/usr/local/apache-tomcat-7.0.55_8081/webapps# pwd
/usr/local/apache-tomcat-7.0.55_8081/webapps
jrhapt01:/usr/local/apache-tomcat-7.0.55_8081/webapps# ls
mon zjzc-web-flow zjzc-web-flow.2015-04-16.tar.gz zjzc-web-flow.2015-04-20.tar.gz zjzc-web-flow.2015-04-28.tar.gz zjzc-web-flow.zip
http://121.40.167.35:8081/test.html
http://121.40.167.35:8081/zjzc-web-flow/test.html
server.xml 配置:
<?xml version='1.0' encoding='utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may o
Tomcat 配置隐藏根目录
最新推荐文章于 2020-03-08 16:54:55 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)