Redirect www to non-www
Naked domains FTW!
This commit is contained in:
parent
05f2749e44
commit
e9aaab5441
1 changed files with 6 additions and 1 deletions
|
@ -28,7 +28,7 @@ http {
|
|||
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
server_name theorangeone.net;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
|
@ -57,4 +57,9 @@ http {
|
|||
error_page 500 502 503 504 /50x.html;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name www.theorangeone.net;
|
||||
return 303 $scheme://theorangeone.net$request_uri;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue