Skip to content

Commit a4f1017

Browse files
committed
Syntax highlighting
1 parent 8fea521 commit a4f1017

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
88
http {
99
security_headers on;
1010
...
@@ -127,13 +127,13 @@ sudo yum -y install nginx-module-security-headers
127127

128128
Then add it at the top of your `nginx.conf`:
129129

130-
```
130+
```nginx
131131
load_module modules/ngx_http_security_headers_module.so;
132132
```
133133

134134
In case you use ModSecurity NGINX module, make sure it's loaded last, like so:
135135

136-
```
136+
```nginx
137137
load_module modules/ngx_http_security_headers_module.so;
138138
load_module modules/ngx_http_modsecurity_module.so;
139139
```
@@ -151,6 +151,6 @@ make install
151151
Or you can compile it as dynamic module. In that case, use `--add-dynamic-module` instead, and load the module after
152152
compilation by adding to `nginx.conf`:
153153

154-
```
154+
```nginx
155155
load_module /path/to/ngx_http_security_headers_module.so;
156156
```

0 commit comments

Comments
 (0)