1 / 5

How to Disable HSTS in NGINX

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/

Download Presentation

How to Disable HSTS in NGINX

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. How to Disable HTTP Strict Transport Policy in NGINX

  2. Open NGINX configuration file Open terminal and run the following command to open NGINX configuration file. $ sudo vi /etc/nginx/nginx.conf

  3. 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"; ... }

  4. Restart NGINX server Restart NGINX server to apply changes. $ sudo service nginx restart

  5. Thank You Visit for details https://techimbo.com/how-to-disable-http-strict-transport-policy-in-nginx/

More Related