Skip to content

Commit

Permalink
Nginx headers
Browse files Browse the repository at this point in the history
  • Loading branch information
egachi committed Feb 27, 2023
1 parent 48a14e0 commit 69083ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _posts/2023-02-24-how-to-modify-nginx-headers.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,8 @@ You can use `add_header` directive to add security headers that your server need
3. Save (`Control + o`) and then `Enter` and close (`Control + x`)
4. Restart nginx with `sudo service nginx restart` and test the configuration with `sudo nginx -t` for any typo or issue.

>Note: If you are using Let's encrypt, cerbot will add this configuration `include /etc/letsencrypt/options-ssl-nginx.conf` which can be conflicting with security headers, review if there is any header that is overwritten in this file.
>Note: If you are using Let's encrypt, cerbot will add this configuration `include /etc/letsencrypt/options-ssl-nginx.conf` which can be conflicting with security headers, review if there is any header that is overwritten in this file.
# Additional references
You can find other ways to edit response headers in App Service Linux using code, or services as Application Gateway, Azure Front Door, etc in this reference.
["Editing Response Headers on Linux App Service"](https://azureossd.github.io/2022/05/25/Editing-Response-Headers-on-Linux-App-Service/index.html)

0 comments on commit 69083ad

Please sign in to comment.