wer
This commit is contained in:
@@ -11,8 +11,12 @@ all:
|
|||||||
up:
|
up:
|
||||||
sudo docker-compose -f srcs/docker-compose.yml up --build -d
|
sudo docker-compose -f srcs/docker-compose.yml up --build -d
|
||||||
|
|
||||||
|
re: fclean all
|
||||||
|
|
||||||
|
|
||||||
fclean:
|
fclean:
|
||||||
sudo docker-compose -f srcs/docker-compose.yml down --rmi all --volumes
|
sudo docker-compose -f srcs/docker-compose.yml down --rmi all --volumes
|
||||||
sudo rm -rf /home/yantoine/data
|
sudo rm -rf /home/yantoine/data
|
||||||
|
|
||||||
.PHONY: all up fclean
|
.PHONY: all up fclean re
|
||||||
|
|
||||||
|
|||||||
@@ -75,11 +75,12 @@ http {
|
|||||||
index index.php index.html index.htm;
|
index index.php index.html index.htm;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ /index.php?$query_string;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Pour toutes les requetes php
|
# Pour toutes les requetes php
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
|
try_files $uri =404;
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
fastcgi_pass wordpress:9000;
|
fastcgi_pass wordpress:9000;
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
@@ -89,5 +90,4 @@ http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user