Questions tagged [varnish]

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

Varnish is primarily a caching reverse proxy, but also exhibits load-balancing and backend checking mechanisms and is very widely used on high traffic websites.

Varnish was designed from the ground to be a high performance reverse caching proxy and to not compete with the operating system on managing resources like memory. Most recent versions of Varnish support storing cache on memory or disk, and serving old content in case of backend fail (saint mode), among other features.

Varnish is written by Poul-Henning Kamp (PHK), and his Architect Notes are available about varnish design. PHK is also a well known FreeBSD kernel developer and mantainer.

937 questions
0
votes
2 answers

What ports, besides 80, need to be available to send (only send) email using phpmailer to gmail over SSL?

Using phpmailer I keep getting a 110 timeout and "Unable to connect to host" when sending email from my web server. The authentication details are right and they work on another server I have (login, pwd, ports etc and gmail acct set up for SSL…
0
votes
4 answers

Varnish Cache on Apache2, Cpanel

I'm running a Cpanel VPS with 5 sites on it. I would like to use Varnish Cache one site only. Can anyone confirm this is possible? http://www.varnish-cache.org/
user72878
0
votes
1 answer

Varnish multi proxy via DNS config and regular expression

I would like to set up a proxy "Varnish" as a bridge between public and private addresses. I thought I could use varnish and DNS servers to map private to public. For example: http://service.domain - (Varnish) -> service-int.domain ... …
thc2cat
  • 31
  • 2
0
votes
1 answer

Multiple chroots in ubuntu for PHP/MySQL hosting

We have a server, Core i7, 24GB RAM we run some of our own applications on. I want to offer some clients PHP/MySQL hosting on that server. Is it feaseable and possible to create a chroot for each client with it's own nginx/php cgi/mysql install? We…
Vasil
  • 495
  • 1
  • 4
  • 7
0
votes
1 answer

varnish+nginx+php-fpm good combo?

does having varnish as a reverse proxy/cacher with nginx backend for dynamic content a good idea? im looking for a way to really speed content up when dealing with a ddos or get flood.
John Thompson
  • 21
  • 1
  • 4
0
votes
1 answer

I keep getting Varnish Guru Mediation 503 errors despite setting timeouts

I have the following backend setup: backend seanesopenko { .host = "seanesopenko.ca"; .port = "8080"; .connect_timeout = 60s; .first_byte_timeout = 300s; .between_bytes_timeout = 60s; } I still keep getting Guru Mediation 503…
0
votes
1 answer

Apache or Varnish reverse proxy to subfolder

I have a domain, site.example.com and I would like to reverse-proxy a web app in site2.example.com/subfolder. Users should access that app by using site.example.com/subfolder. Is it possible? I would like to use Apache or even better varnish…
rtacconi
  • 745
  • 4
  • 14
  • 28
0
votes
2 answers

Has anyone seen an HTTP 500 error when HTTPS traffic going through Pound Proxy forwards to an HTTP page?

We have Varnish as our load balancer and reverse proxy cache for normal HTTP traffic. For HTTPS traffic, we use Pound proxy to unwrap the SSL and forward to Varnish, which then forwards to the back-end servers. This is used for our "checkout"…
scientastic
0
votes
1 answer

nginx + varnish + apache differente IPs in VirtualHost Apache

My idea is put NGINX as proxy to redirect to Varnish (cache static content) and then proxy to apache with a lot of VirtualHost in different IPs. My problems is that I would know how can configure Varnish to send access to correct IP, I am going…
zeusgod
  • 3
  • 1
0
votes
2 answers

Varnishhist x- and y-axis

In varnishhist the x-axis shows the time varnish took between getting the request from the kernel and sending it back to kernel. The y-axis shows the number of requests. | => cache hit # => cache miss That is what I understood from the manpage.…
pst
  • 153
  • 4
0
votes
1 answer

Varnish with multiple hosts/subdomains

I'm new to Varnish, and I'm hoping it already does this "out of the box", but I'd like to clarify before I consider using it in production: Here's my setup: I have multiple sites running off of the same machine that vary by subdomain (i.e.…
jerhinesmith
  • 171
  • 1
  • 1
  • 11
0
votes
1 answer

haproxy as frontend to varnish throwing lots of 50X errors with status cD

I've a setup with haproxy as frontend to two varnish servers (say srvA, srvB). srvA and srvB also have nginx running on 'em and varnish serves as frontend to these servers. Few days back we collected stats to find out how many requests being served…
Mayank
  • 1
  • 1
0
votes
1 answer

Varnish caching apache using address based Basic Authentication

I have an Apache web server hosting a number of sites. On some sites there is HTTP Basic Authentication. I allow some hosts access to the site effectively bypassing the HTTP Auth. For example: Allow from 10.10. I am now placing a Varnish caching…
thepearson
  • 870
  • 10
  • 18
0
votes
1 answer

Varnish's backend weight

Is there a way to specify a weight for a backend in Varnish? I need to be able to serve different page if my main backend is unaccessable.
alexus
  • 13,112
  • 32
  • 117
  • 174
0
votes
2 answers

Varnish throwing 503 errors when there is a healthy backend

I have set up my web server with Passenger serving a Rails app via Nginx. I would like to put Varnish in front of Nginx to cache the web pages, since Passenger is taking its sweet time about creating pages. I compiled Varnish, and ran it with the…
lcarpenter
  • 101
  • 1
  • 1