From 84757dcbb2f67f8148004233075856603564cea4 Mon Sep 17 00:00:00 2001 From: Ihor_Zhekov Date: Mon, 9 Feb 2026 13:16:21 +0000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4129afc..9a280ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,12 +3,15 @@ FROM webdevops/php-nginx:8.2-alpine ENV WEB_DOCUMENT_ROOT=/app COPY ["Profice WebSite/", "/app/"] -RUN echo 'location / { \ +RUN echo 'index index.html index.php; \ +location / { \ + if ($request_uri ~ ^/index(\.html)?$) { \ + return 311 /; \ + } \ if ($request_uri ~ ^/(.*)\.html$) { \ return 301 /$1; \ } \ try_files $uri $uri/ $uri.html /index.php?$query_string; \ - index index.html index.php; \ }' > /opt/docker/etc/nginx/vhost.common.d/10-location-root.conf RUN chown -R application:application /app && chmod -R 755 /app