From 02e176371564f8afd981ab1d72a069620d6e272f Mon Sep 17 00:00:00 2001 From: Jason Williams Date: Mon, 21 Nov 2022 13:25:58 -0700 Subject: [PATCH] Adding server configuration --- jnf.me.conf | 3 +++ jnf.me.sconf | 25 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 jnf.me.conf create mode 100644 jnf.me.sconf diff --git a/jnf.me.conf b/jnf.me.conf new file mode 100644 index 0000000..bece0f7 --- /dev/null +++ b/jnf.me.conf @@ -0,0 +1,3 @@ +location / { + return 301 https://www.jnf.me$request_uri; +} \ No newline at end of file diff --git a/jnf.me.sconf b/jnf.me.sconf new file mode 100644 index 0000000..46bc794 --- /dev/null +++ b/jnf.me.sconf @@ -0,0 +1,25 @@ +if ($host != www.jnf.me) { + return 301 https://www.jnf.me$request_uri; +} + +location / { + index index.php index.html index.htm; + try files $uri /index.html +} + +location /lucy { + index index.php index.html index.htm; + try files $uri /lucy.html; +} + +location ~ \.php$ { + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + if (!-f $document_root$fastcgi_script_name) { + return 404; + } + + fastcgi_pass unix:/run/php/php7.4-fpm-ptools.jaywll.co.sock; + fastcgi_index index.php; + include /etc/nginx/fastcgi_params; + include /home/jason/conf/web/ptools.jaywll.co/nginx.fastcgi_cache.conf*; +} \ No newline at end of file