1
Fork 0

Redirect www to non-www

Naked domains FTW!
This commit is contained in:
Jake Howard 2020-09-05 17:39:05 +01:00
parent 05f2749e44
commit e9aaab5441
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -28,7 +28,7 @@ http {
server { server {
listen 80; listen 80;
server_name localhost; server_name theorangeone.net;
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html; index index.html;
@ -57,4 +57,9 @@ http {
error_page 500 502 503 504 /50x.html; error_page 500 502 503 504 /50x.html;
} }
server {
listen 80;
server_name www.theorangeone.net;
return 303 $scheme://theorangeone.net$request_uri;
}
} }