mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 02:51:35 +02:00
Merge branch 'ticket/bantu/10007' into develop-olympus
* ticket/bantu/10007: [ticket/10007] Add directive 'internal' to blocked folders in nginx config.
This commit is contained in:
@@ -45,6 +45,7 @@ http {
|
|||||||
|
|
||||||
# Deny access to internal phpbb files.
|
# Deny access to internal phpbb files.
|
||||||
location ~ /(config\.php|common\.php|includes|cache|files|store|images/avatars/upload) {
|
location ~ /(config\.php|common\.php|includes|cache|files|store|images/avatars/upload) {
|
||||||
|
internal;
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -59,6 +60,7 @@ http {
|
|||||||
|
|
||||||
# Deny access to version control system directories.
|
# Deny access to version control system directories.
|
||||||
location ~ /\.svn|/\.git {
|
location ~ /\.svn|/\.git {
|
||||||
|
internal;
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user