13 lines
385 B
Markdown
13 lines
385 B
Markdown
|
# Nginx
|
||
|
|
||
|
```
|
||
|
# apt install nginx libnginx-mod-http-headers-more-filter
|
||
|
```
|
||
|
|
||
|
`libnginx-mod-http-headers-more-filter` is required in order to make `more_set_headers` instructions work
|
||
|
|
||
|
Generate a self-signed certificate for default Nginx site.
|
||
|
```
|
||
|
# openssl req -subj '/' -new -newkey RSA:3072 -days 3650 -nodes -x509 -keyout /etc/ssl/private/niver.key -out /etc/ssl/certs/niver.crt
|
||
|
```
|