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

Commit

Permalink
Merge pull request #1159 from oxyc/issue-1158
Browse files Browse the repository at this point in the history
Fixes #1158, Follow-up #1086: Fix Drupal 7 and nginx breaking install.php
  • Loading branch information
geerlingguy authored Feb 9, 2017
2 parents 4a0a3bf + eddff37 commit bed6546
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 bed6546

Please sign in to comment.