I am facing this problem
nginx: [emerg] duplicate location "/" in /etc/nginx/common/wpfc.conf:24
when I try to turn on cache on root wordpress site which also has subdir wordpress site.
I will explain,
I installed wordpress site with "sudo site example.com -wp" and "sudo site example.com -wp=custom -subfolder=/news"
Everythings works well. But Problem started when I turned on cache with
"sudo site example.com -cache=on"
I got this :
"Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details."
journalctl -xe shows "nginx: [emerg] duplicate location "/" in /etc/nginx/common/wpfc.conf:24".
This above is problem case. but I found the way to turn on cache on root wordpress site which aslo has subdir wordpress site.
First I need to turn on cache on subdir wordpress site with
"sudo site example.com -cache=on -subfolder=/news" it works without error. then
"sudo site example.com -cache=on" it also works without above problem case.
This is testng on new vps. but I am having problem in production vps with above problem, I can't reload nginx. How to revert this conditon.?
Thanks , sorry for my english.