We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seems it hasn't been updated for a while. At least this rule from apache config is missing in nginx:
# Block all direct access to files and folders beginning with a dot RewriteRule (^|/)\.(?!well-known) - [F]
Just checked, /.phan/config.php is available directly.
The text was updated successfully, but these errors were encountered:
For nginx it will be
location ~ /\. { return 403; }
or mixed with existing Grav rules (at the end):
location ~ /(LICENSE\.txt|composer\.lock|composer\.json|nginx\.conf|web\.config|htaccess\.txt|\.htaccess|\.) { return 403; }
Sorry, something went wrong.
Also I would suggest changing location ~ \.php$ (any .php) to just location /index.php (a single .php) because Grav has only one executable php.
location ~ \.php$
location /index.php
Add Nginx supported.
How about provding a Pull Request?
No branches or pull requests
Seems it hasn't been updated for a while. At least this rule from apache config is missing in nginx:
Just checked, /.phan/config.php is available directly.
The text was updated successfully, but these errors were encountered: