This content has been marked as final.
Show 1 reply
-
1. Re: Directory listing not working in JBOSS
jaysensharma Aug 28, 2014 5:38 AM (in response to ankur328)Directory listing can be enabled globally as following configuration [static-resources listings="true"]:
<subsystem xmlns="urn:jboss:domain:web:1.5" default-virtual-server="default-host" native="false"> <configuration> <static-resources listings="true"/> </configuration> <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/> <virtual-server name="default-host" enable-welcome-root="true"> <alias name="localhost"/> <alias name="example.com"/> </virtual-server> </subsystem>
You can also use the following CLII command to generate the same configuration:
/subsystem=web/configuration=static-resources/:write-attribute(name=listings,value=true)