项目 | 类型 | 简介 |
---|---|---|
port | int | http 监听端口 |
host | string | 监听的主域名 |
[zhu_engine]
port=80
host=test.wzjer.com
项目 | 类型 | 简介 |
---|---|---|
port | bool | 是否启用 https |
crt | string | 公钥路径 |
key | string | 私钥路径 |
port | int | https 监听端口 |
force | bool | 是否强制将 http 转为 https |
[https]
enable=true
crt=./cert/fullchain.pem
key=./cert/privkey.key
port=443
force=true
[站点名称]
type=解析类型: pattern / domain
url=解析子域名或路径
server=服务器配置
autorun=是否自动运行
exec=自动运行的脚本
schedule=负载均衡调度器
cgi=CGI名称
负载均衡 | server | 简介 |
---|---|---|
round | ip1,ip2 | 轮询 |
random | ip1?weight1,ip2?weight2 | 随机均衡 |
cgi 和 schedule 不能同时生效 如果同时配置,系统会优先代理 CGI
若配置 CGI,则 server 配置为脚本根目录
[CGI名称]
cgi=CGI路径