From: Luca Date: Fri, 15 Jan 2021 16:25:25 +0000 (+0100) Subject: Avoid Jetty's default directory listing settings in web.xml X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=09ada1604274d54efef155205e20f344361418f0;p=archiva.git Avoid Jetty's default directory listing settings in web.xml The directory listing servlet seems not be needed for the default settings. This change explicitly sets it off in web.xml. Credis to @jobar for the original change made for Wikimedia. Git Pull Request #61 Signed-off-by: Martin Stockhammer --- diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml index fa04fc605..4db7ae535 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml @@ -161,7 +161,18 @@ CXFServletV2 /api/* - + + + + default + org.eclipse.jetty.servlet.DefaultServlet + + dirAllowed + false + + 0 + + index.html