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;