Brilliant! Works like a champ!
Cheers
--
Andrei Tchijov
On May 30, 2014 at 11:30:46 , Tomaž Cerar (tomaz.cerar(a)gmail.com) wrote:
Just add this config to your web.xml
<servlet>
<servlet-name>default</servlet-name>
<servlet-class>io.undertow.servlet.handlers.DefaultServlet</servlet-class>
<init-param>
<param-name>allowed-extensions</param-name>
<param-value>js, css, png, jpg, gif, html, htm, txt, pdf, jpeg, xml,
zip</param-value>
</init-param>
<init-param>
<param-name>disallowed-extensions</param-name>
<param-value>class, jar, war</param-value>
</init-param>
</servlet>
and modify allowed / disallowed extensions anyway you want
On Fri, May 30, 2014 at 10:01 AM, Andrei Tchijov <andrei.tchijov(a)vgw.co> wrote:
Hi,
Sorry to bother (if this is wrong list to ask), but I wonder if anybody can help me with
following problem:
We have an application deployed on wildfly which among other things serves few static
files (*.html, *.json and *.zip). Everything works as it should in 8.0.0Final. However, in
8.1RC2 - *.html and *.json files do work, but *.zip files report 404. Nothing changed on
our side - the very same WAR file gets deployed in both cases.
Your help will be highly appreciated,
Cheers,
Andrei Tchijov
_______________________________________________
wildfly-dev mailing list
wildfly-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/wildfly-dev