User Tools

Site Tools


nginx:certificate_installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
nginx:certificate_installation [2017/02/22 14:12] peternginx:certificate_installation [2019/12/01 10:32] (current) – removed peter
Line 1: Line 1:
-====== nginx - Certificate installation ====== 
- 
-<file bash /etc/nginx/nginx.conf> 
-server { 
-  listen   443; 
- 
-  ssl on; 
-  ssl_certificate    /etc/ssl/your_domain_name.pem; (or bundle.crt) 
-  ssl_certificate_key    /etc/ssl/your_domain_name.key; 
- 
-  server_name your.domain.com; 
-  access_log /var/log/nginx/nginx.vhost.access.log; 
-  error_log /var/log/nginx/nginx.vhost.error.log; 
-  location / { 
-    root   /home/www/public_html/your.domain.com/public/; 
-    index  index.html; 
-  } 
-} 
-</file> 
- 
-Adjust the file names to match your certificate files: 
- 
-  * **ssl_certificate** should be your [[Certificates:Concatenate the primary certificate and intermediate certificate|primary certificate combined with the intermediate certificate]] (e.g. your_domain_name.crt). 
-  * **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 /etc/init.d/nginx restart 
-</code> 
  
nginx/certificate_installation.1487772729.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki