Tomcat return 403 for http://127.0.0.1:8080/thgsrp/images/uploaded/watchfront.jpg.
The resource is there, I found the reason in tomcat setting server.xml
<Host appBase="webapps" name="localhost">
<Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_log." suffix=".txt" timestamp="true"/>
<Valve className="org.apache.catalina.valves.RemoteAddrValve"
allow="10.1.*.*,192.168.*.*,127.0.0.1"/>
</Host>
After add 127.0.0.1 in the allow IP address, the problem solved.
No comments:
Post a Comment