roadrunner icon indicating copy to clipboard operation
roadrunner copied to clipboard

[💡FEATURE REQUEST]: `allow` and `forbid` directives in the new fileserver plugin

Open victor-sudakov opened this issue 3 years ago • 4 comments

Plugin

File server

I have an idea!

It would be nice for the new fileserver plugin to support the "allow" and "forbid" directives which were available in the old static middleware.

victor-sudakov avatar Dec 13 '21 03:12 victor-sudakov

Hey @victor-sudakov. I'm not sure, that allow and forbid is common practice for the static file servers. You can use prefixes to distinguish the different file types. In the static plugin that was needed because we had only 1 folder and can't separate different file types.

rustatian avatar Dec 13 '21 06:12 rustatian

I'm not sure, that allow and forbid is common practice for the static file servers.

Oh, the famous .htaccess ! It has always been best practice to prohibit .git/, CVS/ and .svn/ subdirs even in static folders.

victor-sudakov avatar Dec 13 '21 07:12 victor-sudakov

From the official apache docs: However, in general, use of .htaccess files should be avoided when possible.

rustatian avatar Dec 13 '21 07:12 rustatian

Ok, let's wait for the community feedback on this. Thanks for the report.

rustatian avatar Dec 13 '21 07:12 rustatian

Looks like noone interested in that. Closing as old.

rustatian avatar Sep 10 '23 14:09 rustatian