From cd9c5429c4f3c2f25a13aea4caddb945afdd9a64 Mon Sep 17 00:00:00 2001 From: ismail Date: Wed, 23 Aug 2023 09:21:12 +0100 Subject: [PATCH] test config --- docker-compose.yaml | 1 - nginx/default.conf | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index e1e5cbb..7951d2d 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -43,7 +43,6 @@ services : - 80:80 init: true - volumes: front: database: diff --git a/nginx/default.conf b/nginx/default.conf index a15576e..abffb22 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -6,6 +6,8 @@ server { #access_log /var/log/nginx/host.access.log main; location / { + try_files $uri /index.html; + root /var/www/html/; index index.html index.htm; } @@ -14,10 +16,7 @@ server { # redirect server error pages to the static page /50x.html # - error_page 500 502 503 504 /50x.html; - location = /50x.html { - root /usr/share/nginx/html; - } + # proxy the PHP scripts to Apache listening on 127.0.0.1:80 #