As you're running my sample VCL, it should be easy to debug (try each step separately):
- Make sure apache is listening on 127.0.0.1:8080 (as it can be listening on another IP and not in the local loopback).
netstat -lpn | grep 8080
should help. - Rise backend timeouts (if the server is very slow, since defined timeouts are already huge). Requires a Varnish reload.
- Disable health probe (as Varnish can be marking the backend as sick). Comment
probe basic
block and probe line onbackend default
. Requires a Varnish reload. - Disable Varnish logic, uncommenting the first
return(pipe)
onsub vcl_recv
. Requires a Varnish reload.
You should also provide when debugging:
varnishadm debug.health
outputvarnishlog
output for a sample request
Hope it helps!