Exciting things

Tomcat 8 – You are not authorized to view this page

This is an issue that I faced yesterday. I checked all of configuration related to all related files, eg: conf/tomcat-user.xml, conf/server.xml, conf/context.xml. However, all files are configured properly.

After checking around, I figured out that tomcat 8+ does not allow manager app to be accessed remotely. Whatever you do with all related configuration files are useless, until you create a file in: conf/Catalina/localhost/manager.xml  and put below lines into it:

<Context privileged=”true” antiResourceLocking=”false” docBase=”${catalina.home}/webapps/manager”>
<Valve className=”org.apache.catalina.valves.RemoteAddrValve” allow=”^.*$” /></Context>

Good to know!… and this code snippet saves my life 🙂


Leave a Reply

Your email address will not be published. Required fields are marked *