Open u07 opened 11 months ago
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; }
Also I would suggest changing location ~ \.php$
(any .php) to just location /index.php
(a single .php) because Grav has only one executable php.
Add Nginx supported.
How about provding a Pull Request?
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.