Skip to content

Commit c324114

Browse files
committed
Add drupal 8 example to make laradock framework agnostic.
1 parent 380c7bd commit c324114

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
root /var/www/site_a;
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

Comments
 (0)