I am trying to run Tomcat 9. I have configured it to run with SSL. So when I am accessing the tomcat URL with:
It works fine. But when I try to run it with my computer name I get the 403 error saying I should rectify my tomcat-users.xml. I have the XML fine setup just fine. But not sure what to do in this case. I have setup the hosts file with my computer name entry.
Is there any more setting that i need to do in order get it to work?
My users file has these entries:
<role rolename="admin-gui"/>
<role rolename="manager-gui"/>
<role rolename="manager-jmx"/>
<role rolename="manager-script"/>
<role rolename="manager-status"/>
<user password="admin" roles="manager-gui,admin-gui" username="admin"/>
I have attached the error screen as well.
You need to allow access to the manager GUI explicitly for hosts other than localhost by changing the Valve in
../webapps/manager/META-INF/context.xml
:Original:
Either comment it out like this:
Or change the IP inside the Valve to the IP you need, or add it to the list.