Questions tagged [varnish]

Varnish is a high-performance reverse proxy and load-balancer package for Linux/Unix systems.

Filter by
Sorted by
Tagged with
-1
votes
0answers
10 views

use varnish without port 8080 in ubuntu 18.4 [closed]

I have installed varnish in ubuntu 18.4 running virtualmin. I followed instruction from official documentation of virtualmin (https://www.virtualmin.com/documentation/system/varnish). I managed to ...
0
votes
0answers
33 views

Does mod_pagespeed PURGE downstream when its cache purges?

Does google mod_pagespeed send PURGE requests to configured downstream reverse proxies when an item in the mod_pagespeed cache is purged? I'm running Debian 10 with varnish 6 (a varnish 4.0 vcl) ...
0
votes
1answer
45 views

Traffic flow of Varnish, Hitch, and HAProxy

There are many questions and answers here about how to best order the flow of traffic between Varnish and HAProxy to a backend web server. Many of these posts are very old and recommend that Varnish ...
0
votes
1answer
61 views

Php+Nginx+Varnish on docker-compose, ubuntu18

!Important. SOLUTION FOUND. Everything below is working fine for me. And this is almost the only case when you may copy solution from the question. For it read "My Configuration" section Main ...
0
votes
0answers
11 views

Default 4.0 varnish not working

I've decided to do a test with varnish and basically not use the apache 80 port, but it's default 6081. After allowing in the CSF the port, I'm getting connection refused on ip:6081 Things I did: ...
0
votes
1answer
33 views

Does Varnish support unix domain socket files?

Does varnish support unix socket files? I'd like to accelerate my website by adding a varnish reverse proxy (HTTP accelerator/cache) before my web server. My web server's virtual host is currently ...
0
votes
1answer
62 views

Securing access to certain pages/directories with Apache behind a Varnish cache?

I have a public website with some URLs/directories which are for private/internal use only. These private areas can only be accessed via certain IP addresses or with a known username/password. ...
0
votes
0answers
19 views

Robots.txt file can not be modified or removed

After editing the robots.txt file While accessing the file domaon.com/robots.txt I found that the file itself has been edited but that will not appear by accessing it within the browser And Google ...
0
votes
1answer
94 views

Varnish is removing the X-Forwarded-For header when used with Apache ProxyPass

I'm using Varnish 4 and Apache's ProxyPass directive to try to cache content on a HTTPS website (running Magento e-commerce software). Varnish listens on port 80, and Apache on port 8080 (for HTTP) ...
0
votes
1answer
23 views

How to redirect ip servername to main site

Many sites have server name ip in their a records. Showing duplicate content using 302 redirect on many domain names How to make all redirect to only website server is actually using. Config: ...
0
votes
1answer
29 views

My varnish devicedetect.vcl is not working site no longer responsive

default.vcl # Default backend definition. Set this to point to your content server. backend default { .host = "127.0.0.1"; .port = "8080"; } sub vcl_recv { # ...
0
votes
1answer
63 views

I have a lot of traffic and only 1 server best config for nginx/varnish/apache configuration

I have a lot of traffic and only 1 server can I get some help with configuration Nginx.conf config: # For more information on configuration, see: # * Official English Documentation: http://nginx....
0
votes
1answer
38 views

Caching alternatives for https [closed]

I've been using varnish reverse proxy for a few websites and it's a great alternative. However it supports only http and now that the sites want to implement https I don't have another alternative. ...
0
votes
1answer
46 views

How to use nginx as reverse proxy send all requests to varnish

I have a centos 8 and varnish is on port 80 connecting with apache on port 8080 bellow is my nginx config. user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /run/nginx.pid; ...
0
votes
0answers
14 views

Site not responsive anymore I believe is because of varnish

# Default backend definition. Set this to point to your content server. backend default { .host = "127.0.0.1"; .port = "8080"; } sub vcl_recv { # Set the X-Forwarded-For header so the ...
0
votes
1answer
98 views

Varnish ERR_TOO_MANY_REDIRECTS

I am using Nginx > Varnish > Apache, php-fpm in Centos WebPanel. I have an ERR_TOO_MANY_REDIRECTS appear for the wordpress homepage only and it goes away and then comes back on my site. This ...
0
votes
1answer
35 views

Getting http traffic to redirect to https

I'm trying to figure out how to redirect http traffic to https. I running apache2 with varnish. Someone more knowledgeable than me has set this up for me on other websites. I've set up a new site to ...
0
votes
0answers
33 views

What could cause significant delays in server-server requests with high concurrency?

Setup 4x blade setup in a single chassis each with 48 cores and 1 TB memory. VMs managed with Proxmox. A "parent" service with 7 VMs running Linux (Debian)/Apache/PHP calling several microservices ...
0
votes
0answers
49 views

Remove Varnish from system without apt

I have installed varnish via git clone and make: git clone https://github.com/varnishcache/varnish-cache sudo sh autogen.sh sudo sh configure sudo make sudo make install sudo ldconfig How can I ...
1
vote
0answers
40 views

Varnish: what's the difference between Execstart malloc and DAEMON_OPTS malloc?

I'm using Varnish 4.x. I've read around a little but I can't understand what's the difference between the 2. Are they the same thing? Lets take a concrete example. I have a 16GB server. Of those ...
0
votes
0answers
238 views

Apache2 Reverse proxy on Ubuntu 16.04. Only homepage (/) works

Hold the phone, I found the issue! /etc/apache2/apache2.conf had <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted </...
0
votes
0answers
67 views

Nginx+varnish (SSL termination by Nginx) shows 502 bad gateway (the website is not using wordpress) [duplicate]

I configured nginx as SSL terminator for varnish according to this guide: https://www.linode.com/docs/websites/varnish/use-varnish-and-nginx-to-serve-wordpress-over-ssl-and-http-on-debian-8/ I need ...
0
votes
1answer
50 views

How to use varnish with nginx as SSL terminator and with http to https forwarding with nginx

I have installed varnish and nginx and secured my website with lets encrypt SSL. I tested varnish against nginx cgi cache and i have found out that varnish is a bit faster in my use case (wordpress). ...
0
votes
1answer
23 views

How to use varnish with nginx as SSL terminator and with http to https forwarding

I have installed varnish and nginx and secured my website with lets encrypt SSL. I tested varnish against nginx cgi cache and i have found out that varnish is a bit faster in my use case (wordpress). ...
1
vote
1answer
314 views

Varnish cache with Nginx SSL termination

How can I use varnish cache with nginx SSL termination for my SSL-Only (Https only) website? I use ubuntu 18.04 and I am currently running a wordpress site on my server.
0
votes
1answer
59 views

Varnish not caching (MISS)

We have a varnish server in front of a few websites running Nginx/CraftCMS. All the websites cache as expected, except one. Over the past week we've read every tutorial, checked every answer and must ...
0
votes
1answer
335 views

Varnish cache enabled but still getting age: 0 in header

I have installed varnish on my server alongside apache. Its an SSL site. So I use apache for SSL termination with varnish. The problem is when I use the curl -I command, the headers show that age is ...
1
vote
1answer
60 views

Coming Soon Page with Varnish : Exclude Redirection by IP

I've tried to install Varnish Cache with Magento 2. It seems to work OK (although I still have a no-cache to find and to delete apparently ...) but my .htaccess redirection for my "coming soon" page ...
0
votes
0answers
11 views

Varnish with unlimited custom domains

We have a CMS like web application. Publishers sign up and create their publications on our app. Every publisher is assigned a short name (slug) on the registration and their publications become ...
0
votes
1answer
44 views

varnishlog - how to log only certain paths?

I want to log all requests to static pages in a certain directory via varnishlog. This is what I have tried: varnishlog -c -q "ReqURL ~ '.*version15.*'" Works - but I want to limit it further. ...
0
votes
0answers
57 views

How to prevent or reduce spikes in Apache load caused by bots

Today MySQL was killed off by the oom-killer on one of our shared web servers, which caused an outage for our customers. When I investigated what happened I found there were over 1,300 requests in the ...
0
votes
0answers
50 views

varnish in front of php-fpm laravel

My deployment looks like this: /->php-fpm (Laravel) Client->Nginx(HTTPS)->Varnish->Nginx(HTTP) \->...
1
vote
1answer
31 views

Varnish - usage of non latin characters of an URL in VCL

I have a client, which needs Varnish to be installed on his server. He is russian speaking and has an online shop with the following example URL, which needs to be excluded from cache (корзина is the ...
0
votes
1answer
30 views

Where should I implement my url redirect block?

I have hundreds of url redirects to implement and I am not quite certain where the best, most efficient place to implement the redirect block is: on the Varnish server or on the Nginx server. The ...
0
votes
1answer
390 views

exclude one specific url from Varnish Cache setting

What if I want to exclude only one specific url? e.g. mydomain.com/a. but this code not work properly. if ( req.url ~ "^/\?random" ) { return (pass); } I want to exclude only /a URL, I don't ...
0
votes
1answer
26 views

Apache2 server with Varnish www vs non-www domain issue

I have an Ubuntu Apache2 Lamp server that has Varnish and Pound installed for caching sites which all have SSL. I never had issues on this server before with these sites other then they were running ...
0
votes
1answer
177 views

Varnish default.vcl to cover both Drupal and a simple regular website

I have a simple PHP index file website that changes color if refreshed on port 8080, but correctly shows the cached version of the page with the same color thanks to the following default.vcl: ...
1
vote
0answers
337 views

Varnish cache randomly changing response content-length

I have a system hitting a number of backend services through four loadbalanced varnish caches. Approximately 0.1% of requests are being truncated because varnish is returning an incorrect content-...
0
votes
1answer
75 views

Varnish: Is it possible to not cache only one specific part of the page?

Let's say I have page at example.com/location - now I want the content of that URL to be cached, except only one specific HTML-part of the page, which should be updated regularly. This HTML-area ...
2
votes
2answers
1k views

Does Varnish 5.0 support HTTP/2 for backend connections?

I have the following infrastructure: 80 -> Varnish -> Backend (NGINX, port 8080) 443 -> NGINX (SSL-Termination with HTTP/2 enabled) -> Varnish -> Backend (NGINX, port 8080) I know ...
0
votes
1answer
134 views

Varnish greedy buffering

I have a setup with nginx proxy (ssl) to varnish (5.2) to apache on a debian linux. varnish passing response without buffering to nginx (not buffering either) sub vcl_backend_response { if ( std....
0
votes
1answer
332 views

Trying to configure hitch to see/use SSL certificate (as front end to varnish)

First, please let me start this with a "warning" that I'm a newbie with this and am trying to learn on my own. However, my frustrations are mounting and I'm almost ready to completely abandon SSL. (...
0
votes
1answer
91 views

Automatically reload cached objects after varnish xkey.softpurge()

I need to automatically refresh/fetch again objects I invalidated with xkey.softpurge() so that varnish always has a cached version in memory. How is this possible? I am doing a restart in vcl_purge ...
0
votes
1answer
175 views

Large Varnish VCL does not load

I'm using Varnish ACLs for blocking unwanted clients by IP and as the blocklist/ACL has grown the compile time of the VCL has increased a lot. The other day I added another 25K IPs to block and ...
1
vote
2answers
21 views

How to add GET-paramter causing Varnish serving uncached page

I want to add a paramter to some URL that allows me to server a page uncache. So something like https://example.org/foo/baa?uncached should be server by the application servers where as https://...
0
votes
1answer
775 views

I think Varnish is dropping my query string parameters

Our WordPress site has multiple views for every page and post depending on whether or not a specific query string is used. For example, if visited example.com/blog-post-with-chart (a page which ...
0
votes
1answer
233 views

Nginx, SSL and Varnish returning ERR_TOO_MANY_REDIRECTS

I'm trying to setup a Nginx server with Lets Encrypt SSL and Varnish for cacheing but I've hit a brick wall. For some reason the website just keeps returning ERR_TOO_MANY_REDIRECTS and I'm can't track ...
1
vote
2answers
445 views

wordpress ERR_TOO_MANY_REDIRECTS through varnish, but not through apache

I'm having this weird problem with a varnish-wordpress setup. I get TOO_MANY_REDIRECTS when I try to divert traffic through varnish, but if I configure apache directly with a vhost listening on 443, ...
0
votes
0answers
81 views

varnish 4.0 block all ip addresses exept for whitelisted

We have a load balancer for our varnish servers, and only that should be allowed to send traffic to varnish. Is there a way to block all ip addresses except for the 2 ip addresses from the load ...
3
votes
1answer
581 views

Allow location in NGINX based on IP - request comes from Varnish

If Varnish is set as the default Cache in front of my NGINX backend, how can I check in the NGINX backend for the clients original IP and make a decision based on that? I want to allow a certain ...

1
2 3 4 5
18