Skip to content

Commit

Permalink
Merge pull request nginxinc#267 from slashrsm/patch-1
Browse files Browse the repository at this point in the history
Handle private files
  • Loading branch information
LinuxJedi committed May 27, 2016
2 parents d8be5af + dde719b commit 2c98bfc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/start/topics/recipes/drupal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ Recipe
location ~ ^/sites/.*/files/styles/ { # For Drupal >= 7
try_files $uri @rewrite;
}
# Handle private files through Drupal.
location ~ ^/system/files/ { # For Drupal >= 7
try_files $uri /index.php?$query_string;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
Expand Down

0 comments on commit 2c98bfc

Please sign in to comment.