ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

How to access Tomcat 8 manager from different host

book

Article ID: 133116

calendar_today

Updated On:

Products

Endevor Software Change Manager (SCM)

Issue/Introduction

Tried to access Tomcat 8 manager from the remote system and got this error message in the browser:

You are not authorized to view this page.

By default the Manager is only accessible from a browser running on the same machine as Tomcat. What should I do to allow the access to Tomcat 8 manager from different host ?  


Environment

Release : 18.0

Component : CA Endevor Software Change Manager

Resolution

Create a file $CATALINA_BASE/conf/Catalina/localhost/manager.xml and and specify the rule you want to allow remote access. For example, the following content of manager.xml will allow access from all machines:

<Context privileged="true" antiResourceLocking="false"

         docBase="${catalina.home}/webapps/manager">

    <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="^.*$" />

</Context>

Note that the allow attribute of the Valve element is a regular expression that matches the IP address of the connecting host.