dip

old school recipes for janitorial snafu.
git clone git://git.ricketyspace.net/dip.git
Log | Files | Refs

commit d3da4864fdb5d7ffb5dab0b17e6590bdb41abbcf
parent 40fd70e016a273b64b8ace3e8fa098dd50c8d490
Author: rsiddharth <s@ricketyspace.net>
Date:   Tue, 21 May 2019 21:27:37 -0400

etc: Update nginx/sites.conf.

* etc/nginx/sites.conf (fsfi): Add php snafu.

Diffstat:
etc/nginx/sites.conf | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/etc/nginx/sites.conf b/etc/nginx/sites.conf @@ -38,11 +38,19 @@ server { ssi on; server_name fsfi.web; root /var/www/html/fsfi/_build; - index index.html; + index index.html index.php; location / { autoindex on; } + + location ~ \\.php$ { + try_files $uri $uri/ =404; + fastcgi_pass unix:run/php72-fpm.sock; + fastcgi_index index.php; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + } } # vm server.