From 231807c918cb8fa031cbb5dd4702d2538a6986fa Mon Sep 17 00:00:00 2001 From: starnakin Date: Thu, 5 Oct 2023 10:37:04 -0400 Subject: [PATCH] wordpress: init --- srcs/nginx/nginx.conf | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/srcs/nginx/nginx.conf b/srcs/nginx/nginx.conf index 3272120..566ef0a 100644 --- a/srcs/nginx/nginx.conf +++ b/srcs/nginx/nginx.conf @@ -5,11 +5,17 @@ server { ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt; ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key; - root /var/www/html; + root /var/www/wordpress; - index index.html; + index index.php; location / { try_files $uri $uri/ =404; } + location ~ \.php$ { + include fastcgi_params; + fastcgi_intercept_errors on; + fastcgi_pass wordpress:9000; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + } }