How to block particular url in Tomcat

First go to web.xml file conf directory…

vim /home/ec2-user/apache-tomcat-9.0.36/conf/web.xml

and define these lines :-

  <realm-name>Test Realm</realm-name>

Replace or define the URL in url-pattern section


Also, Read This Blog:-  How to increase concurrent connections on apache server.

Leave a Reply

Your email address will not be published. Required fields are marked *