There is no invitation to enter, but receiving 403 status errors

I have a servlet setup in Tomcat 7 and configured security and login settings to use BASIC auth.

When I try to go to the page, I immediately get a 403 forbidden error message, and I don’t get the normal BASIC-auth username / password.

What is strange is that it is almost identical to setting up another webapp that works fine.

+4
source share
1 answer

I had the same problem that day. I set up Tomcat security, it worked locally (on a Windows computer), but after deploying to a production server, it gave me a 403 forbidden error. The fact is that on a Linux and Linux production server, tomcat has different default settings than Windows tomcat.

My solution was to define every possible option in config to match the default settings of Windows + my config. It worked.

Sorry for the lack of examples, but that was a long time ago, and I just can't find the project.

Hope this helps.

0
source

Source: https://habr.com/ru/post/1437675/


All Articles