50 likes | 85 Views
HTTP Strict Transport Security Policy protects your website from malicious attacks. Here is how to disable HTTP Strict Transport Security Policy in NGINX. #nginx #security <br><br>Visit https://techimbo.com/how-to-disable-http-strict-transport-policy-in-nginx/
E N D
Open NGINX configuration file Open terminal and run the following command to open NGINX configuration file. $ sudo vi /etc/nginx/nginx.conf
Disable HTTP Strict Transport Policy Look for the following line in NGINX configuration file. add_header Strict-Transport-Security ... Remove this line, or comment it by adding # at its beginning. If you don’t find the above line, then add the following line add_header Strict-Transport-Security "max-age=0;"; In the above line, we set the Strict-Transport-Security header for 0 days, that is, we disable it. You need to add this in server block of your NGINX configuration file, that listens to port 443 (SSL/HTTPS). server { listen 443 ... add_header Strict-Transport-Security "max-age=0"; ... }
Restart NGINX server Restart NGINX server to apply changes. $ sudo service nginx restart
Thank You Visit for details https://techimbo.com/how-to-disable-http-strict-transport-policy-in-nginx/