emanuelegori revised this gist 4 hours ago. Go to revision
No changes
emanuelegori revised this gist 5 hours ago. Go to revision
1 file changed, 29 insertions
http.conf(file created)
| @@ -0,0 +1,29 @@ | |||
| 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 | + | } | |
Newer
Older