Questions tagged [varnish]

Varnish, or strictly Varnish Cache, is a mature web server http caching reverse proxy that speeds up server replies.

Filter by
Sorted by
Tagged with
0
votes
1answer
14 views

HAproxy + Varnish Cache configuration

need some help here. I have HAProxy that's load balancing 2 servers. HAProxy - 192.168.1.20:80 Server 1 - 192.168.1.18:80 Server 2 - 192.168.1.19:80 Now I would like to configure Varnish Cache to ...
0
votes
0answers
97 views

Random Error 503 Service Unavailable on Varnish; its log shows no fetcherror

Randomly our production site encounters a 503 error; each time after a varnish service restart, the requested site comes up normally. I looked at the varnish log and all I see is "Service ...
0
votes
0answers
20 views

Varnish - Disable cache by default and enable only for specified sites

I am here with question which I was not able to google up. I need solution for that I want to have varnish cache disabled for all sites, and enable caching one by one for my domains. Why this ...
2
votes
1answer
94 views

Varnish - multiple backends for one site

Is possible with Varnish configure multiple backends for one site? For example I have high avalibility site with multiple backends. For example I have site www.goodies.com which is running on php 5.6....
0
votes
1answer
349 views

How to split varnishncsa logs into separate under systemd (Ubuntu 16.04)

I need to have varnishncsa split logs to separate files based on vhost. I know I can make an override configuration in /etc/systemd/system/varnishncsa.service.d that will filter on a specific vhost. ...
0
votes
1answer
262 views

How to run varnish cache without IPv6?

Operating system: debian 9, varnish version: 5.0.0 I have turned off IPv6 support on my machine and varnish crashes upon start with the following error: Error: Cannot open socket: :6081: Address ...
1
vote
0answers
298 views

NGINX -> varnish load balancer -> Apache SSL connection = BAD REQUEST

This is my setup : Server 1 = Nginx is receiving the request on port 443 and is used as a reverse proxy to send it to Varnish 5, on the same server on port 80. Varnish is load balancing requests on ...
0
votes
1answer
262 views

Install Magento 2 and Varnish on separate server

I have Two Server One which have install magento 2 (ip - 129.89.188.244 port 80) and Varnish on other server (ip - 129.89.188.245 port 80) My Vranish Configuration : File /etc/default/varnish:- ...
0
votes
1answer
64 views

Try to grep out varnish version does not work

I try to read the varnish version from a Linux Command line, but the following does not work: varnishd -V | grep -P '(?<=varnish-)[0-9.]+' -o This always returns this varnishd (varnish-3.0.3 ...
1
vote
1answer
96 views

How to avoid repeating sed commands when adding sites to Varnish?

This is my script to install Varnish. I run it each time I raise up a new server environment on a VPS. cd ~ apt-get update apt-get install varnish -y sed -i 's/Listen 80/Listen 8080/g' /etc/apache2/...
0
votes
1answer
170 views

varnish unsetting X-Forwarded-For

I am running varnish-4.0.4-3 on centos7. In the varnish logs, I find: 23 ReqUnset c X-Forwarded-For: 172.16.1.2 23 ReqHeader c X-Forwarded-For: 172.16.1.2, 127.0.0.1 How can I disable X-...
0
votes
1answer
1k views

Pipe Output to Program with systemd

This seems like it should be simple, but I am struggling to make it work. I am trying to set up a systemd service so output from a logging program (varnishncsa) that outputs log entries from memory ...
0
votes
1answer
1k views

Error 503 Service Unavailable on Varnish, but varnishlog shows no error

I have a server running Varnish and nginx. The frontend website reports a 503 error: Error 503 Service Unavailable Service Unavailable Guru Meditation:XID: 317911182 Varnish cache ...
1
vote
0answers
538 views

varnishd killed by OOM, How can I configure the varnishd to avoid this problem?

The following error message is taken from my log message. varnishd server is getting killed for over use of memory. We have done all the possible settings to avoid it, Still the same problem happens ...
0
votes
2answers
3k views

What is the difference between using varnish and caching content in memcached?

Do we need to deploy varnish if our Web application is using memcached or do we need memcached if we are using varnish to cache web contents. Can someone recommend some scenarios where should we use ...
0
votes
1answer
1k views

systemd's parameter expansion is interfering with my service's own command-line syntax

I have this unit file for running a service under systemd. [Unit] Description=Varnish HTTP accelerator log daemon After=varnish.service [Service] User=root Environment="LOG_FORMAT='\"%{X-Forwarded-...
0
votes
1answer
955 views

varnish start failed + nginx

I did install varnish with this guide. Then I want to start it, but FAILD and I cannot start varnish. I ran it in debug mode and I got this error: No VCL Available ! What is the problem here? Also ...
4
votes
1answer
17k views

repository metadata (repomd.xml) for repository: mratwork-centalt

In My server, running Linux Redhat, I have NGINX, PHP Installed already. Now I want to install PHP-FPM, VARNISH, APC, FASTCGI as well Memcache to speed up my server for my wordpress website. I read ...
34
votes
2answers
53k views

How can I tell which version of Varnish I'm running?

How can I get the installed Varnish cache version string from the command line?
2
votes
2answers
3k views

varnish configtest

Is there a way to check varnish configuration syntax without actually using the new version? I'm searching for a native varnish equivalent of apache2ctl configtest