[wildfly-dev] wildfly 8.1RC2 refuse to serve *.zip files (404)

Andrei Tchijov andrei.tchijov at vgw.co
Fri May 30 06:11:01 EDT 2014


Brilliant! Works like a champ!

Cheers
-- 
Andrei Tchijov


On May 30, 2014 at 11:30:46 , Tomaž Cerar (tomaz.cerar at 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 at 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 at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/wildfly-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/wildfly-dev/attachments/20140530/7b6e2856/attachment.html 


More information about the wildfly-dev mailing list