We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 380c7bd commit c324114Copy full SHA for c324114
1 file changed
nginx/sites/framework-examples/drupal_8.conf
@@ -0,0 +1,31 @@
1
+server {
2
+ listen 80;
3
+ listen [::]:80;
4
+
5
+ server_name site_a.dev;
6
+ root /var/www/site_a;
7
+ index index.php;
8
9
10
+ location / {
11
+ try_files $uri $uri/ /index.php?q=$uri&$args;
12
+ }
13
14
+ error_page 404 /404.html;
15
+ error_page 500 502 503 504 /50x.html;
16
+ location = /50x.html {
17
18
19
20
+ location ~ [^/]\.php(/|$) {
21
+ fastcgi_split_path_info ^(.+?\.php)(/.*)$;
22
+ if (!-f $document_root$fastcgi_script_name) {
23
+ return 404;
24
25
26
+ fastcgi_pass php-upstream;
27
+ fastcgi_index index.php;
28
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
29
+ include fastcgi_params;
30
31
+}
0 commit comments