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;