25 lines
543 B
Plaintext
25 lines
543 B
Plaintext
|
|
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;
|
||
|
|
}
|