diff options
author | Phil Burton <phil@pgburton.com> | 2017-08-22 10:10:29 +0100 |
---|---|---|
committer | Phil Burton <phil@pgburton.com> | 2017-08-22 10:10:29 +0100 |
commit | 7b1e62d0cbc3519c469b2afd4da712125707de66 (patch) | |
tree | 06ee38c18849f9b0c85c2eb82bded824e2ff34e6 /nginx/stub.php | |
parent | a4170353515c254ab7404117e7d9b3f15887214a (diff) | |
parent | 47b154758e789e75ec597d88540cdb7f4e352225 (diff) |
Merge branch 'master' of www.blatech.co.uk:FBeans/dipper
Diffstat (limited to 'nginx/stub.php')
-rw-r--r-- | nginx/stub.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/nginx/stub.php b/nginx/stub.php new file mode 100644 index 0000000..e362fb3 --- /dev/null +++ b/nginx/stub.php @@ -0,0 +1,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; + } +}" +]; |