Commit 0111178c authored by omega8cc's avatar omega8cc Committed by anarcat
Browse files

Fix for restricted access to private files in the Nginx configuration.

parent 7c8405b1
...@@ -45,6 +45,22 @@ ...@@ -45,6 +45,22 @@
return 444; return 444;
} }
###
### deny direct access to backups
###
location ~* ^/sites/.*/files/backup_migrate/ {
access_log off;
deny all;
}
###
### deny direct access to private downloads
###
location ~* ^/sites/.*/private/ {
access_log off;
deny all;
}
### ###
### make css files compatible with boost caching - nginx 0.7.27 or newer required with try_files support ### make css files compatible with boost caching - nginx 0.7.27 or newer required with try_files support
### ###
...@@ -253,22 +269,6 @@ ...@@ -253,22 +269,6 @@
try_files $uri @cache; try_files $uri @cache;
} }
###
### deny direct access to backups
###
location ~* ^/sites/.*/files/backup_migrate/ {
access_log off;
deny all;
}
###
### deny direct access to private downloads
###
location ~* ^/sites/.*/private/ {
access_log off;
deny all;
}
### ###
### catch all unspecified requests ### catch all unspecified requests
### ###
......
...@@ -31,6 +31,22 @@ ...@@ -31,6 +31,22 @@
return 444; return 444;
} }
###
### deny direct access to backups
###
location ~* ^/sites/.*/files/backup_migrate/ {
access_log off;
deny all;
}
###
### deny direct access to private downloads
###
location ~* ^/sites/.*/private/ {
access_log off;
deny all;
}
### ###
### make css files compatible with boost caching - nginx 0.7.27 or newer required with try_files support ### make css files compatible with boost caching - nginx 0.7.27 or newer required with try_files support
### ###
...@@ -239,22 +255,6 @@ ...@@ -239,22 +255,6 @@
try_files $uri @cache; try_files $uri @cache;
} }
###
### deny direct access to backups
###
location ~* ^/sites/.*/files/backup_migrate/ {
access_log off;
deny all;
}
###
### deny direct access to private downloads
###
location ~* ^/sites/.*/private/ {
access_log off;
deny all;
}
### ###
### catch all unspecified requests ### catch all unspecified requests
### ###
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment