forked from extern/egroupware
disallow access to vendor directory of apps
This commit is contained in:
parent
a6a27b8bcf
commit
7079b30316
@ -42,7 +42,7 @@ server {
|
|||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ =404;
|
||||||
location ~ ^/egroupware(/(?U).+\.php) {
|
location ~ ^/egroupware(/(?U).+\.php) {
|
||||||
# do not allow to call files ment to be included only
|
# 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;
|
return 404;
|
||||||
}
|
}
|
||||||
alias /usr/share/egroupware;
|
alias /usr/share/egroupware;
|
||||||
|
@ -41,7 +41,7 @@ server {
|
|||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ =404;
|
||||||
location ~ ^/egroupware(/(?U).+\.php) {
|
location ~ ^/egroupware(/(?U).+\.php) {
|
||||||
# do not allow to call files ment to be included only
|
# 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;
|
return 404;
|
||||||
}
|
}
|
||||||
alias /usr/share/egroupware;
|
alias /usr/share/egroupware;
|
||||||
|
Loading…
Reference in New Issue
Block a user