Hands-on task
Redirect www to non-www
Configure nginx (port 80): requests with the host www.example.com must get a 301 redirect to http://example.com (the same path). Requests to example.com are served as usual.
- nginx
- server_name
- return
- 301 redirect
- $request_uri