blob: e362fb3eb2aff0d3188ec2a6e2e7ab3b649c0602 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
return [
"server {
listen *;
server_name %s;
access_log /web/sites/%s/logs/%s.access_log main;
error_log /web/sites/%s/logs/%s.error_log info;
root /web/sites/%s/web;
location ~ \.php$ {
# Test for non-existent scripts or throw a 404 error
# Without this line, nginx will blindly send any request ending in .php to php-fpm
try_files \$uri =404;
include /etc/nginx/fastcgi.conf;
fastcgi_pass unix:/run/php7-fpm.sock;
}
}"
];
|