-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Description
Setting ignoring hidden does nothing.
Steps to reproduce
- Set ignore hidden = False.
- Create a file like
.well-known/test - Access
example.org/.well-known/testin the browser
Expected result
Raw content of .well-known/test is shown
Actual result
404 error page is rendered
Possible reason
In system/router.php, line 21, the access to files and folders is blocked, regardless of the setting
// Block all direct access to files and folders beginning with a dot
strpos($path, '/.') !== false
// Block all direct access for these folders
|| preg_match('`^/(\.git|cache|bin|logs|backup|webserver-configs|tests)/`ui', $path)
Uncommenting the line solves the issue
Reasoning
Why I need this: Grav should be not only be serving a blog but also some static files that are required to be served on the root domain by the matrix protocol: https://spec.matrix.org/latest/client-server-api/.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels