19 lines
356 B
Text
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;
|
|
}
|