Access tomcat server remotely:
When you try to access Tomcat server
from Remote machine , it throwing internet can not be displayed error .
Step 1: To enable remote access need to do the modify the values .under
/opt/apache/webapps/manager/META-INF
Step2 : Go inside
Step 3: When you see it , it is showing that can expose the pages with
localhost address.
Step 4: Now we need to change from local host to any host , for this we need to
comment lines like below.
From:
<Context antiResourceLocking="false"
privileged="true" >
<Valve
className="org.apache.catalina.valves.RemoteAddrValve"
allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />
<Manager
sessionAttributeValueClassNameFilter="java\.lang\.(?:Boolean|Integer|Long|Number|String)|org\.apache\.catalina\.filters\.CsrfPreventionFilter\$LruCache(?:\$1
)?|java\.util\.(?:Linked)?HashMap"/>
</Context>
To :
<Context
antiResourceLocking="false" privileged="true" >
<!--
<Valve
className="org.apache.catalina.valves.RemoteAddrValve"
allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />
<Manager
sessionAttributeValueClassNameFilter="java\.lang\.(?:Boolean|Integer|Long|Number|String)|org\.apache\.catalina\.filters\.CsrfPreventionFilter\$LruCache(?:\$1
)?|java\.util\.(?:Linked)?HashMap"/>
-->
</Context>
Step 5: Now shutdown and start tomcat and access admin console from remote host
Comments
Post a Comment