mirror of
https://github.com/slawkens/myaac.git
synced 2025-12-04 16:46:50 +01:00
add .git to denied folders in nginx
This commit is contained in:
@@ -13,6 +13,11 @@ server {
|
|||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ /\.git {
|
||||||
|
return 404;
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php;
|
try_files $uri $uri/ /index.php;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user