Hands-on task
All of the shop's HTTP to HTTPS
The shop already serves HTTPS on 443, but nothing listens on port 80 yet — old links like http://…/catalog/?page=2 lead nowhere. Set nginx up so that port 80 answers 301 to the same address over https://, keeping the host, path and query of the request.
- nginx
- return 301
- $host
- $request_uri
- https