Thanks for all the feedback! I will continue to debug why our particular 
installation hangs when I remove the ROOT. I was able to do this on a fresh 
installation on my local machine. 

-----Original Message-----
From: Christopher Schultz <ch...@christopherschultz.net> 
Sent: Tuesday, April 21, 2020 6:33 PM
To: users@tomcat.apache.org
Subject: Re: [OT] Removing Tomcat ROOT directory causes the server to hang on 
startup

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Don,

On 4/21/20 09:20, Clough, Don wrote:
> Is it possible to remove the tomcat ROOT directory? We have several 
> applications running on a tomcat instance. I was asked to clean the 
> webapps directory up and remove any unused folders.
This is a good idea. But it's also a good idea to have a ROOT web application. 
It just doesn't have to be (and shouldn't be!) the default Tomcat root web 
application.

Why?

Well, if you navigate to /doesnotexist.html or /does/not/exist.html, unless 
your application is ROOT or happens to be mounted on "/does", Tomcat has no 
application to "assign" the request to, so it MUST generate a generic error 
message.

If you want to be able to handle all possible 404 responses with a nice, 
application-branded "not found" page, you'll need to roll a ROOT web 
application which has just some basic configuration for things like errors, and 
the pages which will be returned when you get those errors.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl6fdIgACgkQHPApP6U8
pFjbmhAAqcqiusrD++bvPNY2BuQmd3eLV8P7Hyis9s9US+E55hPM0WyiZGjfSohQ
Cb1FOpyUvt1WMx/irY8RY+o3aBAYYV8iHR7ydabFRyMhoFQYPislwvW9XnGHKIvE
fQx8p+Z4Vr32GywvrbhFGA7eeQrN+j5jfv/pt8fCTDTSpchTgmfOEIbfKi+BcoMg
ljvJmww+0XDY+z0SgZo47Nczw18WP9pOa0Q8xxHHw1tVLJRLG1RW6Z/B7+BE6UdH
r6ly1A3I59duBHiummwiMOBBGivXaP090lM9GHCWHhkrP32YjXpb34HPt3QcoV5K
ZRep0g06EyyUt1TR2aCzLDAN8zsCq6nJJsXrovXrsm60fJ+aLir3PAfyEsTYEPR7
r5HsJO3T+gpIwqb/lpxSAaML5VbmVNf8dpih5Q2iS2dELGN9WddiEZOO60ztXWfQ
KofJbuqIsnmD2XcZTexdCoJmKb+3huOmW6LWtZ+6hrq/9EgvI4ZfV3DvdRELC/JL
f7u/3AbuPo8vg/H81KEaqZja6RxhuDjoSV+w08zyaaXupNPi5rG3zoNajgmatfpf
GCZNSVnu7++Rk0HDwuFgbNyqDa0Po7Ah33HNUe7K3fpFIHEC7+vDN9A3kXjPjNaA
F45M3l8Z1BKsW0GK+kFcL0/Cn514CrcioQae62nyvZw9U4wm9rI=
=B8Ar
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Disclaimer

The information contained in this communication from the sender is 
confidential. It is intended solely for use by the recipient and others 
authorized to receive it. If you are not the recipient, you are hereby notified 
that any disclosure, copying, distribution or taking action in relation of the 
contents of this information is strictly prohibited and may be unlawful.

This email has been scanned for viruses and malware, and may have been 
automatically archived by Mimecast Ltd, an innovator in Software as a Service 
(SaaS) for business. Providing a safer and more useful place for your human 
generated data. Specializing in; Security, archiving and compliance. To find 
out more visit the Mimecast website.

Reply via email to