Difference between revisions of "Nginx"

From DWIKI
m
Line 10: Line 10:
The host.crt goes first in the bundle
The host.crt goes first in the bundle


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;
  }
}


[[:Category: Proxy]]
[[:Category: Proxy]]

Revision as of 13:15, 20 December 2018

HTTP server, proxy, reverse proxy etc

Links

Notes

SSL certificates

The host.crt goes first in the bundle


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;
 }
}

Category: Proxy