From d17942e5367b9a897227e852e2ebbf0dd911b162 Mon Sep 17 00:00:00 2001 From: Zen Date: Sun, 27 Feb 2022 14:48:42 -0600 Subject: [PATCH] forgot wp conf --- resources/nginx/wordpress.nginx.conf | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 resources/nginx/wordpress.nginx.conf diff --git a/resources/nginx/wordpress.nginx.conf b/resources/nginx/wordpress.nginx.conf new file mode 100644 index 0000000..f84a734 --- /dev/null +++ b/resources/nginx/wordpress.nginx.conf @@ -0,0 +1,24 @@ +server { + listen 80 default_server; + listen [::]:80 default_server; + + server_name SERVER_NAME; + root FILE_ROOT; + index index.php; + + location = /favicon.ico { + log_not_found off; + access_log off; + } + + location / { + try_files $uri $uri/ /index.php?$args; + } + + location ~ \.php$ { + include snippets/fastcgi-php.conf; + fastcgi_intercept_errors on; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_pass unix:/run/php/php7.4-fpm.sock; + } +}