B4J Question jServer supress directory listing

aminoacid

Active Member
Licensed User
Longtime User
Is there any way to prevent jServer from listing the files in the subdirectories that may exist in the home directory?

For example if you create a websockets server running on port 80 that has a sub-directory called "css", the following URL will list all the files in the "css" subdirectory:


This may not be desirable. Most web servers have an option to turn this off. I'm sure Jetty does too, but could not final any info on this forum on how to do it.

Thanks!
 
Top