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 #