VestaCP切换nginx代理模板导致nginx无法启动的问题

问题

当我把VestaCP下的某个网站的代理模板切换到default然后再切换回cache的时候,nginx重新启动失败。
命令终端下重启nginx提示:

nginx: [emerg] the same path name "/var/cache/nginx/xxx.xxx" used in /etc/nginx/conf.d/01_caching_pool.conf:2 and in /etc/nginx/conf.d/01_caching_pool.conf:3

解决

去官方论坛询问以后得知,原因是官方的安装脚本忘了更新某个脚本的下载地址,导致其下载到有BUG的旧版本。
手动下载正常的版本替换旧脚本即可:

wget "http://c.vestacp.com/0.9.8/rhel/nginx-caching/caching.sh" -O /usr/local/vesta/data/templates/web/nginx/caching.sh

标签: none

添加新评论