etc-configs/nginx/conf.d/posts.zzls.xyz.conf
2024-01-14 04:03:37 -03:00

19 lines
356 B
Text

server {
access_log /var/log/nginx/posts.zzls.xyz.log combined;
root /var/www/posts;
index index.html;
server_name posts.zzls.xyz;
include configs/general.conf;
include configs/security.conf;
listen 443 ssl;
http2 on;
}
server {
if ($host = posts.zzls.xyz) {
return 301 https://$host$request_uri;
}
server_name posts.zzls.xyz;
listen 80;
}