Questions tagged [varnish-4]

180 questions
2
votes
2 answers

Upgrading varnish config. obj.ttl and beresp.ttl in vcl_hit aren't working

I have been following a tutorial on setting up haproxy and varnish. (Link) However, the tutorial was written years ago. I have been trying to change the V3 varnish config and have come across a problem in this part: sub vcl_hit { # Purge …
RedGiant
  • 4,444
  • 11
  • 59
  • 146
2
votes
2 answers

Varnish CentOS - Error 503 Backend fetch failed

We installed Varnish but it was not work out like supposed to be. I setup Varnish to listen on Port 80 and Apache to listen on 8080. When i restart varnish and apache the pages keep loading and loading.. I also tried to disable CSF.. After that it…
user5460609
  • 31
  • 1
  • 4
2
votes
1 answer

Deliver stale content after error fetch in Varnish 4 before "probe" marks the server unhealth

I'm using stale-if-error to deliver stale content while the server is marked unhealthy looking at grace and keep object options in vcl_hit. The question is: Is it possible to deliver a cache object after entering the vcl subroutine vcl_backend_error…
Wiliam
  • 3,714
  • 7
  • 36
  • 56
1
vote
1 answer

Varnish how to return same cache for multiple domains

MI have two domains pointing to the same nginx server. this is my setup and how I want to run my domains. My problem is that When a user for example requests site1.com/page/ its cache is diffrent than site2.com/page. I want both site1.com/page/ &…
Kash
  • 1,663
  • 3
  • 24
  • 33
1
vote
1 answer

Remove s-maxage from Cache-Control header using Varnish

We're currently using the s-maxage directive in the Cache-Control header from our origin to control the TTL in Varnish. However, I'd like to remove it from the response before delivery, so that no other caches in the request chain act on it. I'm…
SirRawlins
  • 494
  • 3
  • 18
1
vote
1 answer

Configure Varnish backend in kubernetes deployment

I'm experimenting with spinning up a Varnish instance to speed up a slow but static endpoint of a service. The service is already running in a Kubernetes cluster so I'm basing the setup on the official docker image and following the advice of baking…
bisgardo
  • 4,130
  • 4
  • 29
  • 38
1
vote
1 answer

Hitch Service Failed to Start | Hitch 1.5.2-1 | Ubuntu 20.04.1 LTS

I have installed Hitch "TLS proxy" in Ubuntu 20.01.1 using sudo apt-get install hitch. When I try to start the service I get the following > Loaded: loaded (/etc/systemd/system/hitch.service; enabled; vendor preset: enabled) Active: failed…
1
vote
1 answer

Varnish caching and brute force failed logins not detected

Since I installed and set up varnish caching, failed logins are being logged to auth.log with the IP of the cache (127.0.0.1) instead of the attacker. e.g. Jul 8 14:48:06 host wordpress(hostname.com)[7285]: Authentication failure for admin from…
anorcross
  • 11
  • 4
1
vote
1 answer

Varnish configuration backend host domain name or localhost?

I am new to Varnish sorry for a noob question. In the documentation they say backend host is as vcl 4.0; backend default { .host = "127.0.0.1"; .port = "8080"; } I search over google all are giving example as using host as localhost or…
user3719134
  • 43
  • 10
1
vote
1 answer

Varnish caching is not working in Chrome (but in Incognito mode)

I'm struggling to make Varnish cache work with WordPress. I have used Nginx as SSL termination proxy with Varnish as frontend and Nginx listening on port 8080 as backend. And Cloudflare is used as CDN. My Varnish vcl file looks…
MagePsycho
  • 1,944
  • 2
  • 29
  • 60
1
vote
1 answer

Varnish version shows as "retired"

We are currently using Varnish 3 which has reached its end-of-life. We wanted to upgrade to a newer version but when checking the release summary seems all new releases are shown as "retired" Specifically: https://varnish-cache.org/releases/ Does…
brakon
  • 51
  • 3
1
vote
0 answers

Access admin interface of Varnish using Docker (on Plesk)

I'm trying to setup Varnish (varnish-4.0.5 revision 07eff4c29) using Docker on Plesk. This all seems to work just fine as I'm seeing HITS. The last hurdle I have to take is accessing Varnish from outside the container to clear the cache using our…
1
vote
1 answer

Testing varnish cache rule

I have this: if (bereq.http.X-Path ~ "[a-z0-9]+\.(js|css)$") { set beresp.http.Cache-Control = "max-age=259200"; } And I need to write a test.vtl to demonstrate that is working. I'm trying with: client c1 { txreq -url…
basante
  • 515
  • 3
  • 9
  • 20
1
vote
2 answers

Varnish clear cached items based on status code

We're caching 404 for images as sometimes our app would be released ahead of the actual images and would like to be able to clear them based on status code rather than ALL the images or specific images one by one. However I am new to Varnish an…
son9o
  • 33
  • 5
1
vote
0 answers

http post through varnish to weblogic takes ~30 sec for 302 redirect

I have a J2EE application running on following deployment architecture F5 LB --> Varnish 4 on RHEL 7 --> APACHE 2.4 on RHEL7 --> WebLogic 12.1.2.1 http proxy plug-in --> WebLogic 12.1.2.1 Case: In all such cases where user does a form submit (http…
zatanm
  • 11
  • 2
1 2
3
11 12