V
V
Vanes Ri_Lax2018-05-16 13:04:39
Java
Vanes Ri_Lax, 2018-05-16 13:04:39

How to access application in tomcat?

Hello, I installed tomcat 9 on a virtual machine running Ubuntu 16.04 , I
open the address of the virtual machine in the browser, the tomcat main page opens. Through it I try to open:

  • server status
  • manager app
  • host manager

I get a page
403 Access Denied
Next, I went to the address: I wrote the
/opt/tomcat/conf/tomcat-users.xml
following there:
5afc01c582c59405270489.jpeg
But the 403 page remained the same, the server rebooted, it does not help.
As I understand it, these resources are available only from the local machine. How can I get there from outside?
Thank you very much in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2018-05-16
@vanesxl

In /opt/tomcat/webapps/manager/META-INF/context.xml find

<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" />
</Context>

allowand add the ip address from which you are connecting to the attribute .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question