summaryrefslogtreecommitdiff
path: root/nginx/stub.php
blob: 0e6791851787778aef1b63bda4bd64a7f227071d (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 $domain;

    access_log /web/sites/$name/logs/$name.access_log main;
    error_log /web/sites/$name/logs/$name.error_log info;

    root /web/sites/$name/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;
    }
}"
];