nginx:certificate_installation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
nginx:certificate_installation [2017/02/22 14:12] – peter | nginx:certificate_installation [2019/12/01 10:32] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== nginx - Certificate installation ====== | ||
- | |||
- | <file bash / | ||
- | server { | ||
- | listen | ||
- | |||
- | ssl on; | ||
- | ssl_certificate | ||
- | ssl_certificate_key | ||
- | |||
- | server_name your.domain.com; | ||
- | access_log / | ||
- | error_log / | ||
- | location / { | ||
- | root / | ||
- | index index.html; | ||
- | } | ||
- | } | ||
- | </ | ||
- | |||
- | Adjust the file names to match your certificate files: | ||
- | |||
- | * **ssl_certificate** should be your [[Certificates: | ||
- | * **ssl_certificate_key** should be the key file generated when you created the CSR. | ||
- | |||
- | |||
- | Restart Nginx. | ||
- | |||
- | Run the following command to restart Nginx: | ||
- | |||
- | <code bash> | ||
- | sudo / | ||
- | </ | ||
nginx/certificate_installation.1487772729.txt.gz · Last modified: 2020/07/15 09:30 (external edit)