From 940ab0934b1ba3fb3448b287ad0003bd28bb4343 Mon Sep 17 00:00:00 2001 From: Steffen Illium Date: Fri, 16 May 2025 17:11:49 +0200 Subject: [PATCH] nginx webp and server name --- nginx_default.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx_default.conf b/nginx_default.conf index e4fb7a10..7680e079 100644 --- a/nginx_default.conf +++ b/nginx_default.conf @@ -7,13 +7,13 @@ map $http_accept $webp_suffix { # Map to capture the image path *without* the file extension # This regex captures everything before the last dot and jpg/jpeg/png extension map $uri $image_path_without_ext { - ~^(?.+)\.(?:jpe?g|png)$ $captured_path; + ~*^(?.+)\.(?:jpe?g|png)$ $captured_path; } server { listen 80; listen [::]:80; - server_name localhost; # Replace localhost with your actual domain if needed + server_name server_name steffenillium.de *.steffenillium.de; # Define the root directory for your website files root /usr/share/nginx/html;