On Tue, Mar 20, 2018 at 6:40 AM, Loai Abdallatif <loai.abdalla...@gmail.com> wrote: > Thanks Schultz > > the error is described in the url link below, The issue has been fixed > using following these steps: > > - Go to Tomcat installation and then /opt/worker0/webapps/manager/ > META-INF > - Open context.xml and comment Valve section as below, and it now works > fine, but why is that happened?
You commented out the RemoteAddrValve (https://tomcat.apache.org/tomcat-8.5-doc/config/valve.html#Remote_Address_Valve) so you were trying to access the manager application on an IP that wasn't allowed (wasn't 127.0.0.1). > > <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> > > > source : https://geekflare.com/tomcat-login-problem/ > > On Tue, Mar 20, 2018 at 12:32 AM, Christopher Schultz < > ch...@christopherschultz.net> wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA256 >> >> Loai, >> >> On 3/19/18 4:43 PM, Loai Abdallatif wrote: >> > I have running three tomcat instances worker0,worker1 and worker2 >> > >> > the http connector to workero is listening on port 8080 but the >> > manager is not opening as below and the tomcat-users.xml is >> > configured as this: >> > >> > root@appserver01:/opt/worker0/conf# cat tomcat-users.xml <?xml >> > version="1.0" encoding="utf-8"?> <tomcat-users> <role >> > rolename="manager-gui"/> <user username="manager" >> > password="password" roles="manager-gui"/> </tomcat-users> >> > >> > unfortunatly still not working and keep sending forbidden as below >> >> Your image was stripped from the mailing list. Can you find a way to >> show the problem using text only? >> >> - -chris >> -----BEGIN PGP SIGNATURE----- >> Comment: GPGTools - http://gpgtools.org >> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ >> >> iQJRBAEBCAA7FiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlqwOogdHGNocmlzQGNo >> cmlzdG9waGVyc2NodWx0ei5uZXQACgkQHPApP6U8pFjP7w/6Ah5ZC6Y+jZz1R0VT >> CxqPg1HpD5eRZLrxvBXodo1CqkHHZsJhdI82HrtnSOpBvqr4o9+Bp9M6X/3lubvn >> A5e+zrNSslVCpALd3r8qUJxwdcK/EcHKVruUHAee7U61Y0wz1JXLhjtX+etARA4w >> 1AioSXc5o2R3JC5ssKAoFT6fg8vzh9JRXkSF8HM4g6RpU3ynR2Zh2Ixoa6Fl8Mf5 >> j+4UPuvBJnn/pX76RWn2cfEPGwK6sjn7rgNBMz/qEZhXC8otLfPGYOc4Tn/otImO >> yDeuqetssNd99iw7LAaHB5gm3biqfr5TN3pqBvVojpqqmlDL+XJIYAn2Rik/w9rC >> jzzcuU9eox/iCONPVheywjjafH89onYlkW4Dy/xMF/G7+bAMyzHxSFWzhst7PSZJ >> 7aG2FKVo1m10OThEPtFZkembz6tYxpzSx2V+nxvD5P6BqxCQwW8I8BAHIyemStK5 >> LRBRBKtz4yS7fBJdz+YEjJU49XAtwDR+aF41pv3gv5rrbkroysPoCPgOQI+Xo/wR >> bLsAkYp5y8XPoMWVqCT1KOCE2zkVA3kt1vWpEP6kzsElQUQUpG2E5PU93WZ2q5j/ >> svGGJlSffcsXhUrxSYc1kj8N7EUZasKl1yEWVBHsjGR4TjYkbu5JQIqtVKcjIdAv >> fmRGxlQqqQuj+5q9m9UKb+tIA1M= >> =QBdh >> -----END PGP SIGNATURE----- >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org