http-server-config.example 466 Bytes
Newer Older
David Morley's avatar
David Morley committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
server {
        #normalconfighere
        location /backup {
                deny all;
                return 403;
        }
        location ~ \.php$ {
                try_files $uri =404;
                fastcgi_read_timeout 120;
                fastcgi_pass unix:/run/php/php7.2-fpm.sock;
                fastcgi_index index.php;
                include fastcgi.conf;
        }
        location / {
                try_files $uri $uri/ /?input=$uri;
        }

}