MichalK73 Well-Known Member Licensed User Longtime User Dec 24, 2021 #1 Hello. How to make only selected directories on the server have the 'dirAllowed' status? B4X: Copy 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.
Hello. How to make only selected directories on the server have the 'dirAllowed' status? B4X: Copy 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.
Erel B4X founder Staff member Licensed User Longtime User Dec 26, 2021 #2 dirAllowed is a global setting. Another option is to keep it enabled and add an index.html file to each of the folders that shouldn't be listed. Upvote 0
dirAllowed is a global setting. Another option is to keep it enabled and add an index.html file to each of the folders that shouldn't be listed.
MichalK73 Well-Known Member Licensed User Longtime User Dec 26, 2021 #3 Erel said: Another option is to keep it enabled and add an index.html file to each of the folders that shouldn't be listed. Click to expand... That's how I will have to do it somehow. Thanks for the tip. Upvote 0
Erel said: Another option is to keep it enabled and add an index.html file to each of the folders that shouldn't be listed. Click to expand... That's how I will have to do it somehow. Thanks for the tip.