B4J Question jServer and dirAllowed

MichalK73

Well-Known Member
Licensed User
Longtime User
Hello.

How to make only selected directories on the server have the 'dirAllowed' status?
B4X:
srvr.SetStaticFilesOptions(CreateMap("gzip":False,"dirAllowed":True))
It allows all server directories to have this status and then you can see the directory contents tree. I would like only the chosen ones to be visible. In Apache, Nginx can do this via the .httacces in the folder. I don't know how to do it in jServer.

Another query.
Is it possible to hide a given directory or file in a shared folder with the method used in Linux by adding (dot) in front of the file or folder name.
 
Top