From eac4932b70445fcd7c059372c7c8892a995972bf Mon Sep 17 00:00:00 2001 From: Ihor_Zhekov Date: Mon, 9 Feb 2026 13:13:23 +0000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9b4fdf4..4129afc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,12 @@ FROM webdevops/php-nginx:8.2-alpine ENV WEB_DOCUMENT_ROOT=/app - COPY ["Profice WebSite/", "/app/"] RUN echo 'location / { \ + 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