File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ This NGINX module adds security headers and removes insecure headers, *the right
44
55## Synopsis
66
7- ```
7+ ``` nginx
88http {
99 security_headers on;
1010 ...
@@ -127,13 +127,13 @@ sudo yum -y install nginx-module-security-headers
127127
128128Then add it at the top of your ` nginx.conf ` :
129129
130- ```
130+ ``` nginx
131131load_module modules/ngx_http_security_headers_module.so;
132132```
133133
134134In case you use ModSecurity NGINX module, make sure it's loaded last, like so:
135135
136- ```
136+ ``` nginx
137137load_module modules/ngx_http_security_headers_module.so;
138138load_module modules/ngx_http_modsecurity_module.so;
139139```
@@ -151,6 +151,6 @@ make install
151151Or you can compile it as dynamic module. In that case, use ` --add-dynamic-module ` instead, and load the module after
152152compilation by adding to ` nginx.conf ` :
153153
154- ```
154+ ``` nginx
155155load_module /path/to/ngx_http_security_headers_module.so;
156156```
You can’t perform that action at this time.
0 commit comments