Skip to content
This repository has been archived by the owner on Jul 25, 2020. It is now read-only.

Commit

Permalink
Security fix: Block access to /data dictionary!
Browse files Browse the repository at this point in the history
  • Loading branch information
ypid committed Mar 19, 2016
1 parent 6454579 commit 7d270fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configs/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ http {
access_log off;
}

location ~ ^/(?:\.htaccess|data|config|db_structure\.xml|README) {
location ~* ^/(?:staging/|~[^/]+/)?(?:owncloud/)?(?:data|config|\.ht|db_structure\.xml|README) {
deny all;
}

Expand Down
2 changes: 1 addition & 1 deletion configs/nginx_ssl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ http {
access_log off;
}

location ~ ^/(?:\.htaccess|data|config|db_structure\.xml|README) {
location ~* ^/(?:staging/|~[^/]+/)?(?:owncloud/)?(?:data|config|\.ht|db_structure\.xml|README) {
deny all;
}

Expand Down

0 comments on commit 7d270fe

Please sign in to comment.