How to disable the appending of trailing slash when client requests for the application root context ?
Apache Tomcat Version : 9.0.65 I have a sample folder in the webapps. When I access the sample application via http://localhost:8080/sample . Then it is redirecting to http://localhost:8080/sample/ When I use the command "curl -vL http://localhost:8080/sample" <http://localhost:8080/sample> I got 302 response stating that application can be accessed via /sample/ I set *mapperContextRootRedirectEnabled *to false in the context element of conf/server.xml to disable this behaviour and then restarted the tomcat . But it did not disable it . *<Context docBase="opt/tomcat/webapps/sample" path="/sample" reloadable="true" mapperContextRootRedirectEnabled="false" />* *REFERENCES * *https://tomcat.apache.org/tomcat-9.0-doc/config/context.html <https://tomcat.apache.org/tomcat-9.0-doc/config/context.html>*