nginx_forcing_https
This is an old revision of the document!
server {
listen 80;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
# let the browsers know that we only accept HTTPS
add_header Strict-Transport-Security max-age=2592000;
...
}
nginx_forcing_https.1428187092.txt.gz · Last modified: 2024/05/23 07:26 (external edit)
