summaryrefslogtreecommitdiff
path: root/nginx/stub.php
blob: b018f183d12cd61f52187c6bb01c2b0028458467 (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 {$this->domain};

    access_log /web/sites/{$this->name}/logs/{$this->name}.access_log main;
    error_log /web/sites/{$this->name}/logs/{$this->name}.error_log info;

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