5.2. 配置文件最小化
上述配置中每一项都可以不写以启用缺省值,仅配置listen,达到配置最小化。安装包中自带了精简化配置文件
- $ cat conf/hetao.conf.Linux.minimize
- {
- "listen" :
- {
- "ip" : "" ,
- "port" : 80 ,
- "website" :
- {
- "domain" : "" ,
- "wwwroot" : "/var/hetao/www" ,
- "index" : "/index.htm,/index.html" ,
- "access_log" : "/var/hetao/log/access.log"
- }
- }
- }