Page 1 of 1

[BUG]nginx can't restart.

Posted: Mon Feb 13, 2017 11:09 am
by KuoKongQingYun
I switch the proxy of a web to "cache" and save,and then switch it to "default" and save,and then switch it to "cache" and save again.There got a error "nginx can't restart".
I ran the command "service nginx restart",it noticed that

Code: Select all

nginx: [emerg] the same path name "/var/cache/nginx/xxx.com" used in /etc/nginx/conf.d/01_caching_pool.conf:2 and in /etc/nginx/conf.d/01_caching_pool.conf:3
It seems like that there is a duplicate line in that file which cause this error.

Re: [BUG]nginx can't restart.

Posted: Tue Feb 14, 2017 10:41 am
by Lucian
Hy there , I had the same problem just delete the duplicate save and restart

Re: [BUG]nginx can't restart.

Posted: Tue Feb 14, 2017 11:16 am
by ScIT

Re: [BUG]nginx can't restart.

Posted: Wed Feb 15, 2017 7:55 am
by KuoKongQingYun
Thank you,but I wonder why the latest installation still has this bug :).

Re: [BUG]nginx can't restart.

Posted: Wed Sep 12, 2018 8:44 am
by kandalf
KuoKongQingYun wrote:
Wed Feb 15, 2017 7:55 am
Thank you,but I wonder why the latest installation still has this bug :).

Why this bug still happen on last versions in Centos 7? I fix it using the tip on the thread from 2 years ago, but how is possible that in a new installation this bug still exist?