VPSMATE

  • HOME
  • NEWS
  • VPS
  • DEDICATED
  • ARCHIVES
  • GoDaddy
  • SCRIPT
  • TOOLS
    • Traceroute
    • Benchmark
    • Useful Sites
  • Themes
  • GFW
VPSMATE
VPS COUPON & PROMOS | VPS & DEDICATED SERVERS OFFERS | VPS REVIEWS
  1. Home
  2. QuickFix
  3. This article

Vesta nginx restart failed

17/03/2017 3814Browse 0Like 0Comments

Image result for nginx

Use "nginx -t"

to debug nginx issues.

It's a known issue when nginx fails to start in Vesta due to some misconfiguation occurred by itself.

nginx: [emerg] the same path name "/var/cache/nginx/xxx.es" used in /etc/nginx/conf.d/01_caching_pool.conf:2 and in /etc/nginx/conf.d/01_caching_pool.conf:3
nginx: configuration file /etc/nginx/nginx.conf test failed
nginx: [emerg] the same path name "/var/cache/nginx/xxx.es" used in /etc/nginx/conf.d/01_caching_pool.conf:2 and in /etc/nginx/conf.d/01_caching_pool.conf:3
nginx: configuration file /etc/nginx/nginx.conf test failed
[[email protected] ~]# cat /etc/nginx/conf.d/01_caching_pool.conf
proxy_cache_path /var/cache/nginx/xxx.com levels=2 keys_zone=xxx.com:10m inactive=60m max_size=512m;
proxy_cache_path /var/cache/nginx/xxx.es levels=2 keys_zone=xxx.es:10m inactive=60m max_size=512m;

remove all the duplicate lines. And then restart nginx.

Related

Tags: Nginx vestacp
Last updated:17/03/2017

VPSMATE

stay absorbed stay excellent

Like
< Previous
Next >

Comments

Cancel reply

Highly Recommended!
Vultr
Links
Suggested Web Hosting
Suggested VPS
1.Unmetered G Port & Unlimited Backups 3.Fast Replies 4.Free credits 5.Torrent Friendly A Name You Can Trust
Digitalocean,$5/Mo-512m KVM+20GSSD

Budgetvm 1G Ram/3IP/80G/$48/yr

Photonvps/512mKVM/10GSSD/5.95$

Linode, Top Xen VPS Company

VPS.net, Top Cloud VPS Company

Domain Discounts
DMCA.com Protection Status

COPYRIGHT © 2020 VPSMATE. ALL RIGHTS RESERVED.

THEME KRATOS MADE BY VTROIS