ngx-gateway/ngx/etc/conf.d/model/web.cnf

19 lines
378 B
Plaintext
Raw Permalink Normal View History

2024-02-04 20:39:43 +08:00
server {
listen 80;
listen 443 ssl http2;
# 自动重定向 80 到 443 开启 SSL
# if ( $scheme = http ){
# return 301 https://$server_name$request_uri;
# }
2024-02-04 21:10:09 +08:00
access_log ./conf.d/{name}/access.log;
error_log ./conf.d/{name}/error.log;
2024-02-04 20:39:43 +08:00
charset utf-8;
server_name {server_name};
# web 根目录
root /path/to/web;
}