nginx restart failed (caching template)
Posted: Tue Dec 29, 2015 5:12 pm
I'm running Ubuntu 14.04 and Vesta 0.9.8
Whenever I try to run v-rebuild-user or service nginx restart I get this error:
Error: nginx restart failed
If I check the error log I see this:
and my /etc/nginx/conf.d/01_caching_pool.conf contains:
If I delete /etc/nginx/conf.d/01_caching_pool.conf I can run v-rebuild-user once, but then if I try to run it again it has the same error.
At one point, during my fiddling trying to debug it, the file consisted of 5 repeated lines insetad of 2.
It appears this file is getting ammended the same line every time I rebuild the user.
Why is this happening? It works if I delete 01_caching_pool.conf but this is not a clean solution.
Whenever I try to run v-rebuild-user or service nginx restart I get this error:
Error: nginx restart failed
If I check the error log I see this:
Code: Select all
nginx: [emerg] the same path name "/var/cache/nginx/gpstudios.com" used in /etc/nginx/conf.d/01_caching_pool.conf:1 and in /etc/nginx/conf.d/01_caching_pool.conf:2
nginx: configuration file /etc/nginx/nginx.conf test failed
Code: Select all
proxy_cache_path /var/cache/nginx/gpstudios.com levels=2 keys_zone=gpstudios.com:10m inactive=60m max_size=512m;
proxy_cache_path /var/cache/nginx/gpstudios.com levels=2 keys_zone=gpstudios.com:10m inactive=60m max_size=512m;
At one point, during my fiddling trying to debug it, the file consisted of 5 repeated lines insetad of 2.
It appears this file is getting ammended the same line every time I rebuild the user.
Why is this happening? It works if I delete 01_caching_pool.conf but this is not a clean solution.