Created
December 17, 2012 19:32
-
-
Save 580farm/4321241 to your computer and use it in GitHub Desktop.
Varnish error when redirecting to backend "support". "Default" backend works correctly.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DAEMON_OPTS="-a :6081 \ | |
-T localhost:6082 \ | |
-f /etc/varnish/default.vcl \ | |
-u varnish -g varnish \ | |
-s file,/var/lib/varnish/varnish_storage.bin,1G" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
backend default { | |
.host = "blog.company.com"; | |
.port = "80"; | |
} | |
# | |
backend support { | |
.host = "company.custhelp.com"; | |
.port = "443"; | |
} | |
sub vcl_recv { | |
if (req.url ~ "^/app") { | |
set req.backend = support; | |
} else { | |
set req.backend = default; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Varnish log: | |
14 SessionOpen c 127.0.0.1 56016 :6081 | |
14 ReqStart c 127.0.0.1 56016 2120253163 | |
14 RxRequest c GET | |
14 RxURL c /app/ | |
14 RxProtocol c HTTP/1.1 | |
14 RxHeader c Host: www.s.company.com | |
14 RxHeader c User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.101 Safari/537.11 | |
14 RxHeader c Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 | |
14 RxHeader c Accept-Encoding: gzip,deflate,sdch | |
14 RxHeader c Accept-Language: en-US,en;q=0.8 | |
14 RxHeader c Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 | |
14 RxHeader c Cookie: __atuvc=6%7C45; __utma=1.1975072576.1355181884.1355181884.1355772008.2; __utmb=1.2.10.1355772008; __utmc=1; __utmz=1.1355181884.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none) | |
14 RxHeader c scns-hdr-ip: 50.76.54.11 | |
14 RxHeader c X-Forwarded-For: 10.5.112.22 | |
14 RxHeader c X-Forwarded-Host: www.s.company.com | |
14 RxHeader c X-Forwarded-Server: www.company.com | |
14 RxHeader c Connection: Keep-Alive | |
14 VCL_call c recv | |
14 VCL_return c pass | |
14 VCL_call c pass | |
14 VCL_return c pass | |
15 BackendOpen b support 10.5.112.63 37661 64.56.194.150 443 | |
14 Backend c 15 support support | |
15 TxRequest b GET | |
15 TxURL b /app/ | |
15 TxProtocol b HTTP/1.1 | |
15 TxHeader b Host: www.s.company.com | |
15 TxHeader b User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.101 Safari/537.11 | |
15 TxHeader b Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 | |
15 TxHeader b Accept-Encoding: gzip,deflate,sdch | |
15 TxHeader b Accept-Language: en-US,en;q=0.8 | |
15 TxHeader b Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 | |
15 TxHeader b Cookie: __atuvc=6%7C45; __utma=1.1975072576.1355181884.1355181884.1355772008.2; __utmb=1.2.10.1355772008; __utmc=1; __utmz=1.1355181884.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none) | |
15 TxHeader b scns-hdr-ip: 50.76.54.11 | |
15 TxHeader b X-Forwarded-For: 10.5.112.22 | |
15 TxHeader b X-Forwarded-Host: www.s.company.com | |
15 TxHeader b X-Forwarded-Server: www.company.com | |
15 TxHeader b X-Varnish: 2120253163 | |
15 TxHeader b X-Forwarded-For: 127.0.0.1 | |
14 FetchError c http read error: 0 | |
15 BackendClose b support | |
14 VCL_call c error | |
14 VCL_return c deliver | |
14 Length c 488 | |
14 VCL_call c deliver | |
14 VCL_return c deliver | |
14 TxProtocol c HTTP/1.1 | |
14 TxStatus c 503 | |
14 TxResponse c Service Unavailable | |
14 TxHeader c Server: Varnish | |
14 TxHeader c Retry-After: 0 | |
14 TxHeader c Content-Type: text/html; charset=utf-8 | |
14 TxHeader c Content-Length: 488 | |
14 TxHeader c Date: Mon, 17 Dec 2012 19:20:26 GMT | |
14 TxHeader c X-Varnish: 2120253163 | |
14 TxHeader c Age: 0 | |
14 TxHeader c Via: 1.1 varnish | |
14 TxHeader c Connection: close | |
14 ReqEnd c 2120253163 1355772026.549261093 1355772026.553354979 0.000112057 0.004050016 0.000043869 | |
14 SessionClose c error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment