__maison/vhost/vhost_tmpl_nginx

25 lines
543 B
Plaintext
Raw Normal View History

2022-03-19 13:23:29 +01:00
server {
listen 80;
server_name %domain?;
rewrite ^ https://%domain?$request_uri? permanent;
}
server {
listen 443 ssl http2;
ssl_certificate /etc/letsencrypt/live/%domain?/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/%domain?/privkey.pem;
ssl_stapling on;
server_name %domain?;
location / {
root /home/%user?/html/%domain?;
index index.html;
}
gzip on;
error_log /home/%user?/logs/%domain?/error.log;
access_log /home/%user?/logs/%domain?/access.log;
}