Skip to content

Commit

Permalink
Configure nginx to handle core/install.php, core/rebuild.php and core…
Browse files Browse the repository at this point in the history
…/update.php (#14)
  • Loading branch information
mstrelan authored Jun 28, 2023
1 parent a4c34de commit 2da412d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .docker/nginx/drupal.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,19 @@
location ~ ^/sites/.*/files/(css|js)/ {
try_files $uri @rewrite;
}

# Allow access to core php scripts.
location ^~ /core/install.php {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
include /etc/nginx/conf.d/fastcgi/*.conf;
}

location = /core/rebuild.php {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
include /etc/nginx/conf.d/fastcgi/*.conf;
}

location ^~ /update.php {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
include /etc/nginx/conf.d/fastcgi/*.conf;
}

0 comments on commit 2da412d

Please sign in to comment.