-----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

Reply via email to