disallow access to vendor directory of apps

This commit is contained in:
Ralf Becker 2020-06-05 11:46:50 +02:00
parent a6a27b8bcf
commit 7079b30316
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ server {
try_files $uri $uri/ =404;
location ~ ^/egroupware(/(?U).+\.php) {
# do not allow to call files ment to be included only
location ~ ^$path/(vendor|[^/]+/(src|setup|inc))/ {
location ~ ^$path/(vendor|[^/]+/(src|setup|inc|vendor))/ {
return 404;
}
alias /usr/share/egroupware;

View File

@ -41,7 +41,7 @@ server {
try_files $uri $uri/ =404;
location ~ ^/egroupware(/(?U).+\.php) {
# do not allow to call files ment to be included only
location ~ ^/egroupware/(vendor|[^/]+/(src|setup|inc))/ {
location ~ ^/egroupware/(vendor|[^/]+/(src|setup|inc|vendor))/ {
return 404;
}
alias /usr/share/egroupware;