Problem:
After TOMCAT is deployed, the service cannot be accessed locally through IP
Analysis :
It can be accessed through the domain name For
example :
<Host name="test.com" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Context path="/" docBase="xxx" reloadable="true" >
</Context>
</Host>
get test.com/index.jps
Solution:
replace test.com with IP, as follows (the specific reasons will be analyzed later)
<Host name="xxx.xxx.xxx.xxx" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Context path="/" docBase="xxx" reloadable="true" >
< /Context>
</Host>
After tomcat is deployed, it cannot be accessed through IP
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326991274&siteId=291194637
Ranking