Under jboss-5.1.0.GA/server/< serverName>/deployers/jbossweb.deployer you will find a web.xml which by default has set the "listings" attribute to false. Change it to set that value to true to allow directory listing:
<init-param> <param-name>listings</param-name> <param-value>true</param-value> </init-param>
Thanks it's work.
But I have one more Q, Can I configured that to point to a path, to one folder only and if i can haven secure that it will be great ?
And how if you can.
Thank You :)
Can I configured that to point to a path, to one folder only and if i can haven secure that it will be great ?
I'm sorry i did not get this question. Are you asking how to configure the server such that it allows directory listing for only one application and rest all applications don't allow directory listing?
First Yes you explain that much better.
And Can the Directory listing point to a different folder ? something like "/tmp/directotyl" ?
This worked for me since I am working on a similar project.
However, how is it possible to hide the directory name in the listing, as shown above?
I only want the links to the file names to be listed.