How to enable directory listing of static content in JBoss EAP 6

Solution Verified - Updated -

Issue

  • How to enable or configure directory listing in JBoss EAP 6.3.3, so that from the browser can show the directory listing. In other earlier versions such as jboss 4.0.2, I have enabled that option and the directory listing is displayed. In the JBoss EAP 6.3.3 I need that deployment looks the same way.
  • I wanted to know if directory listings is disabled by default in JBoss EAP 6? I tried to disable directory listings using below CLI. But when I check in standalone.xml there is nothing added.


    [standalone@127.0.0.1:9999 /] /subsystem=web/configuration=static-resources:write-attribute(name=listings,value=false) { "outcome" => "success", "response-headers" => { "operation-requires-reload" => true, "process-state" => "reload-required" } }

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.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