Update Dockerfile

This commit is contained in:
2026-02-09 13:21:56 +00:00
parent 84757dcbb2
commit 7b26ddc1d7

View File

@@ -6,7 +6,7 @@ COPY ["Profice WebSite/", "/app/"]
RUN echo 'index index.html index.php; \ RUN echo 'index index.html index.php; \
location / { \ location / { \
if ($request_uri ~ ^/index(\.html)?$) { \ if ($request_uri ~ ^/index(\.html)?$) { \
return 311 /; \ return 301 /; \
} \ } \
if ($request_uri ~ ^/(.*)\.html$) { \ if ($request_uri ~ ^/(.*)\.html$) { \
return 301 /$1; \ return 301 /$1; \