Skip to content

Commit

Permalink
refactor: ♻️ handle www in domain
Browse files Browse the repository at this point in the history
  • Loading branch information
this-is-tobi committed May 25, 2024
1 parent 4256616 commit dbae885
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
server {
server_name "~^www\.(.*)$";
return 301 $scheme://$1$request_uri;
}

server {
listen 0.0.0.0:8080;
server_name localhost;
Expand Down

0 comments on commit dbae885

Please sign in to comment.