From dbae8850b9f416ad2fd8cf301e491fad553083e8 Mon Sep 17 00:00:00 2001 From: this-is-tobi Date: Sat, 25 May 2024 17:37:54 +0200 Subject: [PATCH] refactor: :recycle: handle www in domain --- nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nginx.conf b/nginx.conf index ab3530f..2a33605 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,3 +1,8 @@ +server { + server_name "~^www\.(.*)$"; + return 301 $scheme://$1$request_uri; +} + server { listen 0.0.0.0:8080; server_name localhost;