Questions tagged [varnish-4]
180 questions
0
votes
1 answer
Varnish 4.0.1, Apache, Centos 7, Plesk 12, Wordpress with w3 total cache - Varnish not caching html
I set up varnish on my site the other day and I don't believe it is working correctly as the age shows as 0:
The url we checked: pbsgroups.deep-image.co.uk
HTTP/1.1 200 OK
Date: Wed, 24 Feb 2016 09:57:14 GMT
Server: Apache
Link: …

Luke
- 3
- 1
0
votes
2 answers
Varnish, What is causing hit-for-pass?
This is the varnishlog (edited - expanded to give more info):
* << Request >> 172651
- Begin req 172650 rxreq
- Timestamp Start: 1455791132.581465 0.000000 0.000000
- Timestamp Req: 1455791132.581465 0.000000…

Cesc
- 648
- 1
- 11
- 22
0
votes
2 answers
Does Varnish 4 use hash key to look up objects when purging or banning?
When varnish invalidates cache via Purge and Ban, does it use the hash keys defined in vcl_hash to help looking up the objects? If I'm going to invalidate cache by a custom header obj.http.page_id instead of obj.http.url recommended by this article,…

RedGiant
- 4,444
- 11
- 59
- 146
0
votes
1 answer
503 Backend fetch failed with varnish 4.1 and WordPress 4.4
I have a 503 Error with multiple host in varnish 4 with WordPress 4.4.
Virtual Server, to server_1 and server_2. (I copy only one, because the VS is the same for both, x is equal to server number).
server {
listen 81;
server_name…

kalelc
- 1,507
- 1
- 18
- 33
0
votes
1 answer
Docker-Compose Networking - DNS Returns Multiple, Inaccurate IP Addresses
I set up a project with Docker-Compose's experimental --x-networking feature, and I'm running across an odd issue with DNS lookups on the private network that compose creates.
When I do a ping, or ip command, or look at /etc/hosts, I see everything…

Tim White
- 355
- 2
- 8
0
votes
1 answer
Varnish - VCL - do BAN() request on remote host
i have a few varnish cache's running, and want to be able to ban()/purge() content on the local varnish node, and from there i also want to purge the remote varnishes, so i can purge on all varnish hosts.
it should be triggerd on "POST" method…

Helmut Januschka
- 1,578
- 3
- 16
- 34
0
votes
1 answer
Concerns with my many different webservers
I have several web camera and want it to go the traffic through the Varnish.
Each webcam has its own web server. I want to reach first, when I page cam.city.travel:4444/cam1/ that then show the camera 1 and at the page cam.city.travel:4444/cam2/…

beatnick33
- 13
- 2
0
votes
1 answer
Varnish with 2 backends, always reverts to first backend
I am trying to set up a varnish (4) server with 2 backends. However when I try to access it with 2 different URLs it always reverts to server1's backend. Here are the relevant parts of my .vcl file.
Backend server configuration:
backend server1 {
…

thewire247
- 795
- 1
- 9
- 24
0
votes
1 answer
Varnish Cache on Virtualmin and phpMyAdmin
I have installed Varnish Cache ver.4 on CentOS6 machine running Virtualmin. There is no problem accessing websites set via Virtualmin but cannot get to /phpmyadmin for each virtual host.
Have added
if (req.url ~ "^/phpmyadmin") {
return…

JackTheKnife
- 3,795
- 8
- 57
- 117
0
votes
0 answers
How to use "req.http.Cookie" in Varnish 4.0.3
I want to use the Varnish 4.0.3.
And I want to divide the caching process whether cookie has specific key and value.
When user comes to mypage, if their browser has "loged_in=true" cookie, I do NOT want to cache the page.
Also if it doesn't have the…

k16
- 481
- 2
- 6
- 18
-1
votes
1 answer
Varnish Pass - request coalescing
I have a varnish 4 setup with - nginx ssl termination -> varnish -> varnish rr to 4 apache backends
We need to basically not cache any requests where a specific cookie isn't set on the incoming request, so in my vcl_recv I have:
if (!req.http.Cookie…

Pablo R
- 33
- 4
-1
votes
1 answer
Varnish ESI caching - remote url returns 404
I'm trying to have a Varnish ESI caching on my local setup.
I did create a sample html file called index.html.
Hello!!~~

nejnej25
- 1
-1
votes
1 answer
Varnish causes user to log off right after the login
We setup two web servers with Apache 2.4, php 7.0.32 and Magento 2.1 with Varnish 4.x version and one MySQL database, Apache is listening on port 8080 and Varnish on port 80, web servers are able to cache web pages, but if a user logs in and clicks…

Coppernicus
- 39
- 6
-1
votes
1 answer
I am trying to install varnish
The instructions in the varnish site are
varnish install
isn't rpm --nosignature -i https://repo.varnish-cache.org/redhat/varnish-4.1.el6.rpm
and yum install varnish doing the same thing?
I finally installed varnish but I don't have a clear idea of…

christoph
- 132
- 1
- 3
- 10