http.conf
· 807 B · Text
Исходник
# Default Site - HTTPS catch-all (wildcard)
server {
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
server_name _;
# Modifica npm-XX con l'ID del tuo certificato wildcard (es. npm-46)
ssl_certificate /etc/letsencrypt/live/npm-XX/fullchain.pem;
# Modifica npm-XX con l'ID del tuo certificato wildcard (es. npm-46)
ssl_certificate_key /etc/letsencrypt/live/npm-XX/privkey.pem;
include conf.d/include/ssl-cache.conf;
include conf.d/include/ssl-ciphers.conf;
access_log /data/logs/default-host_access.log combined;
error_log /data/logs/default-host_error.log warn;
root /data/nginx/default_www;
error_page 404 /index.html;
location / {
return 404;
}
location = /index.html {
internal;
}
}
| 1 | # Default Site - HTTPS catch-all (wildcard) |
| 2 | server { |
| 3 | listen 443 ssl default_server; |
| 4 | listen [::]:443 ssl default_server; |
| 5 | server_name _; |
| 6 | |
| 7 | # Modifica npm-XX con l'ID del tuo certificato wildcard (es. npm-46) |
| 8 | ssl_certificate /etc/letsencrypt/live/npm-XX/fullchain.pem; |
| 9 | |
| 10 | # Modifica npm-XX con l'ID del tuo certificato wildcard (es. npm-46) |
| 11 | ssl_certificate_key /etc/letsencrypt/live/npm-XX/privkey.pem; |
| 12 | |
| 13 | include conf.d/include/ssl-cache.conf; |
| 14 | include conf.d/include/ssl-ciphers.conf; |
| 15 | |
| 16 | access_log /data/logs/default-host_access.log combined; |
| 17 | error_log /data/logs/default-host_error.log warn; |
| 18 | |
| 19 | root /data/nginx/default_www; |
| 20 | error_page 404 /index.html; |
| 21 | |
| 22 | location / { |
| 23 | return 404; |
| 24 | } |
| 25 | |
| 26 | location = /index.html { |
| 27 | internal; |
| 28 | } |
| 29 | } |