Hey guys,
i’ve got one problem and don’t know how to solve this problem.
I have to use another backend if the req.url matches AND HTTP Status is 404.
sub vcl_recv {
if (req.url ~ „^/path/to/images") {
set req.backend = p1_backend;
set req.http.host = "www.mysite.de“;
}
How to solve the 404 St
Hi Jan,
This is my solution:
sub vcl_recv {
// Redirect 404er Pictures - vcl_fetch will restart request and set new
header to match with this rule
if (req.http.host == "new-header.de") {
if (req.url ~ "^/var/storage/images") {
set req.backend = new_backend;
}
}
}
Hi all,
first some details of my varnish:
varnish-3.0.5-1.el6.x86_64
varnish-libs-3.0.5-1.el6.x86_64
We are trying to remove the response of 503 status the backend delivers to
our varnish.
--snip--
37 TxHeader b X-Backend-Healthy: yes
37 TxHeader b X-Varnish: 1092996393
37 RxPr
Hi guys,
is there any official Puppet Module out there for using Varnish 3 (Varnish
4 support not a must-have)?
We are using Puppet 3 with Hiera. If not has anyone some favourite Puppet
Modules?
Thanks and best regards,
Tobias
___
varnish-misc mailing
Hi guys,
first of all we are using malloc 16G and varnish currently using > 25G of
our memory so the vm begin to swap. n_lru_nuked value raise up quickly.
PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND
65265 nobody20 0 27.3g 25g 81m S 12.3 82.2 463:09.42 varnishd
r
Hi guys,
i currently stuck on the following setup:
Client / Request -> 1x ELB (LBCookieStickinessPolicy) -> 2x Varnish -> 3x
Backend
I need to setup session stickyness otherwise backend sends CSRF-Token is
invalid.
AWS ELB sends cookies like: AWSELB=
E5D3B9C50EAF269F2C074A8A0DA1A422FAB5B73E769AA
Hi Xavier,
maybe this snippet will help you
Cookie: https://github.com/lkarsten/libvmod-cookie
Query String: https://github.com/Dridi/libvmod-querystring
default.vcl:
import cookie;
import querystring;
sub vcl_recv:
if (req.url ~ "^/random/url") {
cookie.parse(req.http.Cookie);
cookie.
27; is http://pastebin.com/wEideMfC
>
> Output of 'netstat -tulpn and iptables -vnL' is
> http://pastebin.com/n5TYJVH5
>
> Thanks
>
> On Sat, Feb 13, 2016 at 7:33 PM, Tobias Honacker <
> t.honac...@googlemail.com> wrote:
>
>> Hi,
>>
>> ple
Hi,
what about this code
sub vcl_recv {
set req.backend_hint = foo;
set req.http.CurrentBackend = foo;
if ( some condition ) {
set req.backend_hint = bar;
set req.http.CurrentBackend = bar;
}
if ( req.http.CurrentBackend ~ "foo" ) {
/* do sth nasty */
}
}
Viele Grüße / Re
Hi all,
we are facing some issues trying to stresstest our oAuth App using Varnish
4.0.3 and Gatling
Infra:
LB -> Apache (SSL Offloading) + Varnish -> Appserver (Apache + Tomcat)
Varnishlog:
http://pastebin.com/tCWgi01H
VCL:
http://pastebin.com/cEdzAwxs
tcpdump on our app server with 1 req/s
10 matches
Mail list logo