Configuring JBoss to allow directory listing of static content in EAP 5

Solution Verified - Updated -

Issue

  • We can get JBoss to serve up static files by creating a symlink to a directory with ".war" appended to the symlink's name, but this doesn't return a directory listing.  You have to know the entire path to the file.

    So this works:
    http://host:8080/logs/app.log
    
    Doesn't work:
    http://host:8080/logs/
    
  • Any idea how to get JBoss to serve up directories of static content?

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content