Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to remap the servlet URL?

remap servlet URL
0
Posted

How to remap the servlet URL?

0

Let us assume that the Document Root of your Apache Web Server is /home/www. Now, you have some Web application in the physical directory /home/www/jkltests. You need to add the following lines to $TOMCAT_HOME/conf/tomcat.conf file to mount the web application: ApJServMount /mytests /root AllowOverride None deny from all AllowOverride None deny from all This will mount the mytests web application and Apache will forward all requests of a type: http://www.wearebig.com/mytests/something to Tomcat. Moreover, while latest version of Tomcat does it automatically, we explicitly deny access to any URLs like http://www.wearebig.com/mytests/WEB-INF/something. Moreover, since we actually mounted the web application with a different name (mytests than its top directory (jkltests), and since the application top directory is located within the Web Server Document Tree (Document Root for Apache is here /home/www)

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123