Author Topic: Nginx + Varnish Issue  (Read 6478 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Nginx + Varnish Issue
« on: June 17, 2019, 01:35:20 AM »
l am having a lot of issue to get a wordpress site to work with varnish. l set the port to 82 in the
domain configuration and ip to 127.0.0.1 l also try my server ip no luck. also l set the varnish to default and it doesn't work l set it to wordpress and same nothing. the only error l got in 3 different servers was

Error 503 Backend fetch failed
Backend fetch failed

Guru Meditation:
XID: 3

Varnish cache server

Offline
*****
Re: Nginx + Varnish Issue
« Reply #1 on: June 17, 2019, 06:54:13 AM »
I guess you should not change any configs manually.
And I would not use Varnish. I believe nginx+PHP-FPM 7.x the best option.
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: Nginx + Varnish Issue
« Reply #2 on: June 19, 2019, 10:35:10 AM »
Same issue with Varnish 5.0, Magento 2.2, and nginx.

So in my case, Varnish was immediately reporting "503 backend fetch failed" with the same "no backend connection" error in varnishlog, and it turned out it was due to the probe for health_check.php returning a 404 error.

Offline
*****
Re: Nginx + Varnish Issue
« Reply #3 on: June 20, 2019, 04:11:12 PM »
You have to try to check nginx/Apache logs. Also, try to open your website without Varnish by ports like 8080
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services