mirror of
https://github.com/apache/archiva.git
synced 2025-02-21 09:24:54 +00:00
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 <martin_s@apache.org>
This commit is contained in:
parent
ebd46ab1ce
commit
09ada16042
@ -161,7 +161,18 @@
|
||||
<servlet-name>CXFServletV2</servlet-name>
|
||||
<url-pattern>/api/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
|
||||
<!-- Removing dir-listing from Jetty default-servlet -->
|
||||
<servlet>
|
||||
<servlet-name>default</servlet-name>
|
||||
<servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>dirAllowed</param-name>
|
||||
<param-value>false</param-value>
|
||||
</init-param>
|
||||
<load-on-startup>0</load-on-startup>
|
||||
</servlet>
|
||||
|
||||
<welcome-file-list>
|
||||
<welcome-file>index.html</welcome-file>
|
||||
</welcome-file-list>
|
||||
|
Loading…
x
Reference in New Issue
Block a user