1
vote
2answers
60 views

nginx + varnish, optimize caching urls for ssl and not

I have a working varnish cache for my websites, with the undesired side effect that requests for a domain with http are cached with a certain url, and requests for https with another url. That way I ...
-2
votes
2answers
35 views

Will Varnish recreate cache?

I want to cache pages on my nginx site for fast retrieval. Let's say every 5 hours I want to expire all the cache and have it recreated. Will Varnish make calls to the web-server and recreate cache on ...
2
votes
1answer
40 views

NginX/Varnish and Auto Caching

Let's say we have a wordpress site example.com On our site, there are multiple products. Urls look like this: example.com/products/product-1/ example.com/products/product-2/ ...
1
vote
2answers
32 views

Varnish Disrupting Logins with Invision Power Board

I recently transferred one of my primary sites over to a WordPress installation, but unfortunately, this resulted in extremely high server loads. Originally, I was running a basic LAMP server with ...
3
votes
4answers
522 views

Varnish on 80, nginx on 8080, on which port to put jenkins?

On my staging server, I have Varnish + Nginx. They are on port 80 and 8080. Given that I have to install jenkins, on which port I have to bind it ? (which is usually 8080 but it's already taken)
0
votes
1answer
48 views

varnish wordpress comments

On my server I have installed Varnish in front of nginx, to serve static files faster. When using my site I have found following bug: Every comment on my wordpress blog is coming from localhost ...
2
votes
1answer
32 views

Varnish config to fallback to another port

I am playing around the different config setups. Currently I have Varnish-cache in port 80, Apache2 in port 70 and Nginx in port 90 in the same machine. The Varnish is configured in such way that it ...
0
votes
1answer
705 views

Getting “The page you are looking for is temporarily unavailable. Please try again later”

I have a vps running Ubuntu+LEMP+Varnish. Everything was fine untill I updated the server software. Now I am getting "The page you are looking for is temporarily unavailable. Please try again later" ...
1
vote
2answers
710 views

Varnish + Nginx + multiple IP addresses

This is my first shot at making Varnish work on my dedicated server which hosts 2 domains with 2 separate IP-addresses. My simplified setup is as follows: Nginx conf server { listen ...
0
votes
0answers
214 views

Nginx with wordpress refused varnish static content requests

I just added another wordpress site to my ubuntu server. 2 wordpress sites, not multisite. They use 2 different fpm pool with same config. Their Nginx config files are basically identical except the ...
0
votes
1answer
130 views

SSL Certificate implementation for a stack that has varnish and multiple NGINX webservers

My current stack has Varnish -> NGINX (2 servers) running Drupal -> MySql. All static content is cached and served by Varnish over HTTP. However when a user signs-up and wants to purchase a plan the ...
-1
votes
2answers
620 views

Where will load fall using Nginx, Varnish, and HAProxy? [duplicate]

We are looking into scaling our servers and I am not sure where load will fall as visitor count increases. I have one HAProzy load balancer, that proxies to two Varnish Nginx static content servers. ...
1
vote
1answer
213 views

Varnish + Nginx + Wordpress: using Varnish get's redirect loop

I have two websites using Wordpress and Nginx and was trying to put Varnish at front, but when changing the listen port of Nginx to 8080 all the websites enter in an redirect loop. In the sites ...
0
votes
0answers
45 views

Server intrusion - MySQL row altered

I have an AWS EC2 and an RDS instance running MySQL. The web app is Magento. We're facing an issue where the attacker has changed a row in the database - this is the PayPal seller's email address. ...
1
vote
1answer
357 views

Varnish stops listening on port 80 after few hours

I have configured varnish to listen on port 80 and nginx to listen on 8080. After around 24 hours of uptime, my site has been down for 22 hours. I checked in and found varnish isn't listening on port ...
0
votes
2answers
135 views

Wordpress (using varnish + apc + w3tc): Do the statistics get updated when the data is being retrieved from the cache?

If the data is served to the client from the varnish cache, does it still get registered as a hit in the statistics (could be derived from nginx logs or might be google analytics)? I believe if the ...
2
votes
1answer
268 views

AWS WebServer architecture (ELB + iptables)

I'm currently working on the architecture of high-traffic high-availability website. We are using AWS. Currently, we have: Route 53 -> ELB -> Multiple EC2 instances -> RDS Multi AZ. Each EC2 ...
0
votes
1answer
209 views

Apache / Nginx / Varnish - GZIP does not work on css, js

My current setup is as following: Apache -> Nginx -> Varnish running on Ubuntu apache2.conf: h**p://pastebin.com/A3wehAbe .htaccess: h**p://pastebin.com/Yre4hdSy (edited to allow deflate) ...
0
votes
0answers
468 views

Varnish redirect loop

I've tried with a lot of varnish configurations and always experience the same redirect loop, after varnish is running for a couple of hours some pages are displaying the message: The page isn't ...
0
votes
0answers
574 views

Varnish, Nginx & SSL

I've added SPDY to my server last week which is running Varnish for cashing and Nginx as webserver. Varnish was listening at port 80 and Nginx at 8080 and 443. Traffic at 8080 is redirected using ...
0
votes
0answers
103 views

nginx — > varnish — > apache2 very slow?

This is my current setup Nginx and Varnish on one server---> Apache2 second server Entry Point ---> NGINX ( Port 80 rewrites to 443 ) 443 terminate and reroute to port 6081 on localhost as http ...
1
vote
1answer
121 views

Buffered nginx/varnish access logging to remote server

I need a way to measure how many times different files have been accessed and when. My setup consists of several low capacity servers spread out over the world running Varnish behind Nginx (for SSL ...
1
vote
1answer
675 views

nginx varnish nginx php-fpm: real ip for php's _SERVER['REMOTE_ADDR']

This is specific question. A Nginx server (call it N1) listens on :80 and forwards to varnish with proxy_pass Varnish listens on 127.0.0.1:6081 and forwards to Nginx (N2) on 8080. N2 talks to the ...
1
vote
0answers
201 views

Varnish server in front of nginx server with multiple virtualhosts

I have tried to search for a solution for this, but can't find any documentation/tips on my specific setup. My setup: Backendserver: ngnix: 2 different websites (2 top domains) in virtualenv, ...
0
votes
0answers
304 views

How to add Pound & Varnish to my SPDY/https-only LEMP stack?

So I got quite excited about installing Varnish, having read lots of good things. But then I discovered it doesn't work with https. Fair enough. It seems combining it with Pound is the solution: ...
0
votes
3answers
263 views

Issue varnish purge through CloudFlare to Varnish

I've been working on this for a while and can't seem to find any solution. I have varnish sitting in front of my nginx server, with CloudFlare sitting in front. When I issue a curl -X PURGE host ...
-1
votes
2answers
136 views

How do I block visitors by varnish on centos, using nginx as backend?

I want to block visitors from some country, by country code, not by maintain a lot of ip ranges. I can do it using only nginx, but i've just configured varnish to frontend, and I have not found any ...
3
votes
3answers
288 views

Caching PHP pages, Varnish, nginx, other?

I have a web application running on a low end box (1gb RAM), serving a mixture of static and dynamic (php) pages. These PHP pages are querying a MYSQL database which does not change often at all - ...
0
votes
4answers
1k views

Nginx - Wordpress Redirect Loop

I'm using nginx as a frontend for apache2. Apache2 will handle all dynamic content. This is my main file with nginx being a frontend for apache and having all dynamic pages forwarded to apache2: ...
0
votes
2answers
460 views

Varnish ESI not working

I have a configuration like this: - nginx port 80 - varnish (3.0.4) port 6081 - apache port 8080 Nginx takes the request and passes it to Varnish which then check the cache and then either returns ...
0
votes
1answer
474 views

Nginx, apache2, Varnish with PHPMyAdmin

I have an install of Nginx, apache2 and Varnish. I have setup the following code in my default.vcl so when I browse to my /phpmyadmin it doesn't redirect to 8080. sub vcl_fetch { if (req.url ~ ...
0
votes
1answer
42 views

Domain Not Being Served by Nginx

I have a 13.04 Ubuntu server with two associated ip addresses. Let's say for example the IPs are 123.456.789.111 and 123.456.789.222 and the server has two domains let's say example1.com and ...
1
vote
1answer
350 views

how to disable varnish X Forwarded For header

i am using nginx <=> varnish <=> apache i am passing client IP to varnish via nginx proxy_set_header X-Forwarded-For $remote_addr; but varnish also adding X-Forwarded-For as 127.0.0.1 so ...
0
votes
4answers
1k views

connections on port 80 suddenly refused / server not responding

my dedicated server stopped responding to requests on port 80 today out of sudden, i havent touched anything in more than a month. its ubuntu 10, varnish + nginx + php-fpm, only 1 website. load is ...
0
votes
1answer
77 views

Unable to get varnish to start

I cannot get nginx to start after changing my config file I'm very grateful for any assistance you can provide thank you :) #This is a basic VCL configuration file for varnish. See the vcl(7) # man ...
2
votes
2answers
504 views

Ram issues with NGINX, PHP-FPM+APC and Varnish

I'm running a 512MB and i have lot of ram issues. I think is due to my configuration. root@s1:~# free -m total used free shared buffers cached Mem: 1024 ...
0
votes
2answers
145 views

301 re-direct www to non-www on NGINX with Varnish enabled

I'm really hoping someone can help me with this. After a lot of searching I haven't been able to find the solution. I am running my website on NGINX and have Varnish enabled however, when I try to ...
1
vote
1answer
352 views

Ignore certain URLs on Varnish Cache

I'd like that Varnish completely ignored certain URLs on my websites. I.e., www.site1.com/fileuploader and www.site2.com/fileuploader I have 4 websites on the same VCL, and all those websites are ...
0
votes
1answer
110 views

isup.me reported site down but I still can access website like normal

I have nginx as backend running WordPress (with w3tc cache plugin installed), varnish as reserve caching proxy, and cloudflare set up. Sometimes, I see isup.me reported my website is down but in fact ...
0
votes
3answers
631 views

Port number being added to WordPress admin after Varnish install

I added Varnish in front of nginx. When I try to login to WordPress, I go to domain.com/wp-admin but I'm now redirected to domain.com:8080/wp-admin. I can manually remove the port and the admin side ...
0
votes
3answers
204 views

Force WWW with Varnish and nginx

I'm trying to figure out how to force WWW in varnish for only one domain. I saw this answer to remove WWW but I don't know how to translate it to force it. Edit: To clarify, my nginx config was ...
0
votes
1answer
408 views

How to set Varnish so that it doesn't cache a specific URL with a query string?

Server setup: Ubuntu 12.10, Varnish 3.0.2, Nginx 1.3.14, with a WordPress 3.5.1 install. We are using the "Random Redirect" plugin which shows a random blog post at the URL http://example.com/?random ...
0
votes
1answer
502 views

Multiple sites with Varnish and nginx on the same server

UPDATE: I found a typo in my config. I forgot one of the ports to change over. The issue is resolved. Originally I had a server with nginx running multiple websites. I added Varnish in front to be on ...
1
vote
1answer
160 views

nginx, apache http authentication

I have an nginx reverse proxy server which feeds into a varnish cache with an apache backend. The php is running as a fastcgi process started from apache. I was attempting to get some php software ...
0
votes
1answer
700 views

Error 503 Service Unavailable Varnish

So I setup a new cloud based instance with Ubuntu 12.04, with nginx, php5-fpm and varnish. Before I installed and configured Varnish, the website worked fine, virtual hosts worked. After setting up ...
1
vote
3answers
180 views

nginx + php-fpm + varnish + ssl

I have a social networking site and because of that we want to run ssl all the time. does this defeat the purpose of using any type of cache system for even static content since everything will be ...
0
votes
2answers
364 views

Varnish not passing user IP correctly to MediaWiki

I'm running a setup with Nginx, FastCGI, APC, Memcache and Varnish to host a MediaWiki installation. I'm having some issues with recent changes showing up as coming from 127.0.0.1 in the case of ...
-1
votes
1answer
88 views

How does Varnish handle expiration [closed]

I've been using shared hosting up until recently before switching to a normal VPS for learning. Currently my server only run wordpress and forum on top nginx + mysql and nothing else. I've read ...
-2
votes
1answer
204 views

Can I use Varnish to front 2 different services from different servers on 1 domain? [closed]

I've been futzing around with getting this set up however I don't know if Varnish supports what I am trying to do: I have a server (ec2) thats running Nginx/Magento for ecommerce (www.domain/) On ...
0
votes
1answer
266 views

Ideal Varnish & nginx setup to ensure cache consistency across multiple instances

Looking for the ideal setup involving nginx as our top layer load balancer that distributes load across multiple Varnish instances. What is the best way to distribute this load? One way would be to ...