roadrunner
roadrunner copied to clipboard
[💡FEATURE REQUEST]: `allow` and `forbid` directives in the new fileserver plugin
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.
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.
I'm not sure, that
allowandforbidis 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.
From the official apache docs: However, in general, use of .htaccess files should be avoided when possible.
Ok, let's wait for the community feedback on this. Thanks for the report.
Looks like noone interested in that. Closing as old.