Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Fixes #1158, Follow-up #1086: Fix Drupal 7 and nginx breaking install…
Browse files Browse the repository at this point in the history
….php access
  • Loading branch information
oxyc committed Feb 9, 2017
1 parent 4a0a3bf commit eddff37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions provisioning/templates/nginx-vhost.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ server {
return 404;
}

{% if drupal_major_version == 8 %}
# Redirect common PHP files to their new locations.
location ~ ^((?!.*(?:core)).*)/(install.php|rebuild.php) {
return 301 $scheme://$host$1/core/$2$is_args$args;
}
{% endif %}

# Use fastcgi for all php files.
location ~ \.php$|^/update.php {
Expand Down

0 comments on commit eddff37

Please sign in to comment.