ubuntu:nginx:setting_up_hsts_in_nginx
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ubuntu:nginx:setting_up_hsts_in_nginx [2019/11/29 16:20] – created peter | ubuntu:nginx:setting_up_hsts_in_nginx [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Ubuntu - NginX - HTTPS Strict Transport Security (HSTS) ====== | ====== Ubuntu - NginX - HTTPS Strict Transport Security (HSTS) ====== | ||
- | The HTTP Strict Transport Security (HSTS) header allows a host to enforce the use of HTTPS on the client side. By informing the browser to only use HTTPS, even if the user specifies HTTP as the protocol, the browser will enforce the use of HTTPS. | + | The HTTP Strict Transport Security (HSTS) header allows a host to enforce the use of HTTPS on the client side. |
+ | |||
+ | By informing the browser to only use HTTPS, even if the user specifies HTTP as the protocol, the browser will enforce the use of HTTPS. | ||
HSTS, coupled with server side redirection from HTTP to HTTPS, offers a more robust implementation of SSL as the browser is now aware that you expect secure comms. | HSTS, coupled with server side redirection from HTTP to HTTPS, offers a more robust implementation of SSL as the browser is now aware that you expect secure comms. | ||
+ | ---- | ||
===== NginX - Setting up HSTS in NginX ===== | ===== NginX - Setting up HSTS in NginX ===== | ||
Line 31: | Line 34: | ||
The optional **always** parameter ensures that the header is set for all responses, including internally-generated error responses. | The optional **always** parameter ensures that the header is set for all responses, including internally-generated error responses. | ||
+ | ---- | ||
+ | |||
+ | ===== Restart NginX ===== | ||
- | Don't forget to restart | + | <code bash> |
- | <code bash> |
ubuntu/nginx/setting_up_hsts_in_nginx.1575044420.txt.gz · Last modified: 2020/07/15 09:30 (external edit)