nginx terminé

This commit is contained in:
0x00000000
2025-06-14 22:21:08 +02:00
parent 7c60e64c67
commit 527dbd3991
2 changed files with 15 additions and 2 deletions
+3
View File
@@ -8,3 +8,6 @@ RUN openssl req -x509 -nodes -out /etc/nginx/ssl/inception.crt -keyout /etc/ngin
RUN mkdir -p /etc/nginx/ssl
RUN mkdir -p /var/run/nginx
COPY conf/nginx.conf /etc/nginx/nginx.conf
RUN chmod 755 /var/www/html
RUN chown -R www-data:www-data /var/www/html
CMD [ "nginx", "-g", "daemon off;" ]
+11 -1
View File
@@ -7,6 +7,16 @@ server {
#root and index and server_name
root /var/www/html;
server_name localhost;
server_name yantoine.42.fr;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ =404;
}
# Pour toutes les requetes php
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass php:9000;
}
}