Skip to content

Commit 2da412d

Browse files
authored
Configure nginx to handle core/install.php, core/rebuild.php and core/update.php (#14)
1 parent a4c34de commit 2da412d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.docker/nginx/drupal.conf

+16
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,19 @@
22
location ~ ^/sites/.*/files/(css|js)/ {
33
try_files $uri @rewrite;
44
}
5+
6+
# Allow access to core php scripts.
7+
location ^~ /core/install.php {
8+
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
9+
include /etc/nginx/conf.d/fastcgi/*.conf;
10+
}
11+
12+
location = /core/rebuild.php {
13+
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
14+
include /etc/nginx/conf.d/fastcgi/*.conf;
15+
}
16+
17+
location ^~ /update.php {
18+
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
19+
include /etc/nginx/conf.d/fastcgi/*.conf;
20+
}

0 commit comments

Comments
 (0)