From bb5ab233e0785ab6fdcdfc6ab7219521e9fe888d Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Fri, 4 Jul 2025 18:16:17 +0000 Subject: [PATCH] wer --- Makefile | 6 +++++- srcs/requirements/nginx/conf/nginx.conf | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 704867f..2860629 100644 --- a/Makefile +++ b/Makefile @@ -11,8 +11,12 @@ all: up: sudo docker-compose -f srcs/docker-compose.yml up --build -d +re: fclean all + + fclean: sudo docker-compose -f srcs/docker-compose.yml down --rmi all --volumes sudo rm -rf /home/yantoine/data -.PHONY: all up fclean +.PHONY: all up fclean re + diff --git a/srcs/requirements/nginx/conf/nginx.conf b/srcs/requirements/nginx/conf/nginx.conf index 3828f85..616ee05 100644 --- a/srcs/requirements/nginx/conf/nginx.conf +++ b/srcs/requirements/nginx/conf/nginx.conf @@ -75,11 +75,12 @@ http { index index.php index.html index.htm; location / { - try_files $uri $uri/ =404; + try_files $uri $uri/ /index.php?$query_string; } # Pour toutes les requetes php location ~ \.php$ { + try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass wordpress:9000; fastcgi_index index.php; @@ -89,5 +90,4 @@ http { } } - } }