h5ai icon indicating copy to clipboard operation
h5ai copied to clipboard

How can I exclude folders from being managed by h5ai?

Open Mystard opened this issue 5 years ago • 4 comments

I have folders /foo/ and /bar/.

Folder /foo/ contains /_h5ai/ folder and the /bar/ folder.

How can I exclude /bar/ from being managed by h5ai? The /bar/ folder contains multiple folders with multiple .php files with different names, so I can't add them to unmanaged with just the .php filenames. Is there a way I can add specific folders to unmanaged?

My problem is that when I go to /bar/foobar/ folder, it displays the .php files via h5ai, and I don't want that.

Mystard avatar Jun 07 '19 08:06 Mystard

It would be nice if it was an option.

The way I've done it is (apache2) is create a new for the /foo/bar folder doesn't doesn't include the parameter /_h5ai/public/index.php

<Directory /foo/bar/> Options Indexes FollowSymLinks AllowOverride None DirectoryIndex index.html index.php #/_h5ai/public/index.php </Directory>

hirez0 avatar Jul 16 '20 18:07 hirez0

~~Or exclude some types of file.~~

nvm, found it here https://github.com/lrsjng/h5ai/blob/master/src/_h5ai/private/conf/options.json#L68

N0rimaki avatar Apr 30 '21 06:04 N0rimaki

if you dont want them to be accessible at all, change the permissions so only certain users/groups should be able to list them

On Fri, Apr 30, 2021 at 2:25 AM Norimaki @.***> wrote:

Or exclude some types of files.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lrsjng/h5ai/issues/708#issuecomment-829871387, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHYY3EVGDRRMICFG5BPTHXDTLJEPHANCNFSM4HVTIPIQ .

hirez0 avatar May 02 '21 23:05 hirez0

@hirez0 this is a nice hint... i will try this too.. thank you

N0rimaki avatar May 07 '21 08:05 N0rimaki