Tagged Questions
1
vote
2answers
63 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
51 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 ...
0
votes
1answer
45 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
32 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
0answers
41 views
How to troubleshoot this server with nginx?
Since last week one of my server is going down every few hours. By going down I mean going to the webpage gives me this error:
Error 102 (net::ERR_CONNECTION_REFUSED): The server refused the ...
0
votes
1answer
72 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
55 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
53 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
65 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
73 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
183 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
118 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
0answers
25 views
MediaWiki seems to purge Varnish too often
I'm using MediaWiki in a setup with Nginx and Varnish. I'm having some difficulties getting it set up properly. When I use $wgSquidServers to enable the Varnish server, the loading time of the pages ...
0
votes
2answers
82 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
51 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
81 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
0answers
165 views
Video Caching - nginx / varnish / squid [closed]
I need to put a reverse proxy cache in place to handle small MP4 video files - generally 5MB or less. There is no streaming, it is pure HTTP download, but the solution does need to support 206 ...
0
votes
1answer
125 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 ...
3
votes
1answer
45 views
Using a 3rd server for caching database and static content
So, I just "won" a free year for a basic VPS with 5GB storage and 256MB ram and I thought that the best thing I could do with it is to separate the memcache service from each of my other 2 servers and ...
-1
votes
2answers
130 views
reverse proxy that caches post requests
I understand that varnish caches "GET" and "HEAD" requests by default.
My backend servers fail when I do a get request that is too long, so I made them respond to POST instead of GET. This works ...
0
votes
2answers
137 views
Caching without file extensions
I'm trying to use Varnish to show the non-logged in users a cached version of my website.
I'm able to perfectly detect if the user is logged in or out, but I can't cache pages without extensions.
...
1
vote
1answer
273 views
Continuous segmentation faults (code 11) with nginx and php-fpm
I'm running a CentOS 6 64bit server with 1.2 GHz CPU and 2.4 GB RAM. The server runs nginx and php-fpm with the APC extension and also mysql.
A couple of weeks ago the server starting continuously ...
1
vote
0answers
149 views
Nginx > Varnish > Gunicorn Error Too many Redirections
I have the following config:
Nginx > Varnish > Gunicorn > Django
I want to cache 2 versions of same site (mobile & web) with Varnish.
Gunicorn :
WEB: gunicorn_django --bind 127.0.0.1:8181
...
1
vote
0answers
220 views
Nginx vs jetty for static file serving - benchmark [closed]
I've seen quite a few articles/blog posts on how to set up nginx (together with varnish as well) as a front end to jetty (or any servlet container for that matter) for serving static data.
Is there ...
1
vote
2answers
88 views
Nginx refuses to bind to 8080
I have setup Varnish to run on port 80 which seems to work fine.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
varnishd 8005 nobody 7u IPv4 14055 0t0 TCP *:http (LISTEN)
...
2
votes
1answer
593 views
Logging the client IP with Nginx/Varnish/Apache
I have Nginx listening on port 443 as an SSL terminator, and proxying unencrypted traffic to Varnish on the same server. Varnish 3 is handling this traffic, and traffic coming in directly on port 80. ...
3
votes
1answer
108 views
Can Varnish/Nginx cache and store PHP pages after user visited?
Please assume that there is a PHP CMS that retrieves content according to IDs from database.
So every time you visit this website it interacts with Database and Processes the PHP request.
Can Nginx ...
1
vote
1answer
340 views
Redirect non-https traffic when using Varnish and nginx
I am using Stunnel, Varnish, and nginx with a nodejs app, and I'm having trouble redirecting non-https pages (http://manager.domain.com) to their respective https page (https://manager.domain.com). I ...
0
votes
1answer
254 views
Varnish/HaProxy/Nginx [duplicate]
Possible Duplicate:
Ordering: 1. nginx 2. varnish 3. haproxy 4. webserver?
Could you tell me if a configuration as below looks ok to serve pages delivered from my web servers. Is there some ...
3
votes
1answer
260 views
Using Varnish as load balancer
Varnish already support load balancing HTTP 1.1 and Web Socket requests, e.g. https://www.varnish-cache.org/trac/wiki/LoadBalancing
Since we already using Varnish for caching purpose, are there any ...
0
votes
2answers
279 views
How to direct reverse proxy requests using wildcard vhosts
I'm interested in running a reverse proxy with 2-3 virtual machines behind it. Each internal server will run multiple virtual hosts, and rather than manually configuring each individual vhost on the ...
0
votes
0answers
131 views
ESI Varnish + Nginx + PHP-FPM
Currently I'm migrating my environment with Varnish + Apache + mod_php to Varnish + Nginx + php-fpm.
When I set up new env Nginx + Varnish + php_fpm, ESI does not work.
varnish.cfg ESI
vcl_fetch ...
0
votes
2answers
309 views
Node.js, Nginx and Varnish with WebSockets
I'm in the process of architecting the backend of a new Node.js web app that i'd like to be pretty scalable, but not overkill. In all of my previous Node.js deployments, I have used Nginx to serve ...
-1
votes
1answer
271 views
How to arrange web servers with Varnish? [closed]
I am wondering what it the best (most stable with the least memory footprint) arrangment for a busy php+mysql app?
request > Varnish > Apache
requests > Varnish > Nginx > php5-fpm
...
2
votes
3answers
685 views
Load Balancer --> Varnish --> Nginx
Been scratching my head for a few hours now and wanted to see if anyone can help.
1) I have a load balancer with 6 servers in the back end.
2) The back end servers are Nginx and to get the real IP ...
3
votes
1answer
414 views
nginx and varnish for caching forcing ssl
I'm in the process of doing my homework for a move from apache w/o caching to nginx with caching, possibly via varnish...
After reading various blogs, articles, serverfault questions, etc. I ...
0
votes
1answer
696 views
nginx: 502 bad gateway while using node.js varnish and stunnel
I've been following this tutorial, and everything seems to run OK, except for my nginx setup. My node.js application runs on port 1337, varnish runs on port 80, stunnel on 443 and nginx on 8080.
I ...
1
vote
2answers
254 views
Using nginx / varnish for SSL and Non-SSL pages
Disclaimer: I have posted this on Stackoverflow as well as I thought it may have fit better there. The link to the question is below if someone would like to answer there.
--
I have the following:
...
0
votes
1answer
244 views
How to fix googlebot Server Connectivity
I get 'Server Connectivity' error at google webmaster tool. I suspect it is because of iptables rules that I've set to counter some DDoS attacks, thugh I'm not sure which rules could be relevant. This ...
1
vote
3answers
727 views
Caching: Varnish vs fastcgi_cache on Nginx in a multiple websites envirnment
I have a setup of a VPS with several websites. Some of the websites are WP websites and some of them are other dynamic websites.
I'm interested in adding a sort of reverse proxy/caching layer. ...
3
votes
2answers
685 views
Main differences between SSI (Server Side Include) and ESI (Edge Side include)
I need to include dynamic content into static pages at web server level. The 2 options I have found so far are Server Side Include (SSI) and Edge Side Include (ESI).
While the origins of SSI seem ...
0
votes
0answers
371 views
nginx error: *513 upstream timed out (110: Connection timed out) while connecting to upstream
Its seems to be a fastcgi error:
root@server:/etc/nginx# tail /var/log/nginx/error.log
2012/06/28 13:25:14 [error] 6081#0: *513 upstream timed out (110: Connection timed out) while connecting to ...
3
votes
0answers
304 views
Varnish “FetchError no backend connection” error
Varnishlog:
0 CLI - Rd ping
0 CLI - Wr 200 19 PONG 1340829925 1.0
12 SessionOpen c 79.124.74.11 3063 :80
12 SessionClose c EOF
12 StatSess c 79.124.74.11 3063 ...
3
votes
4answers
619 views
Varnish, hide port number
My set up is as follows:
OS: CentOS 6.2 running on an OpenVZ virtual machine.
Web server: Nginx listening on port 8080
Reverse proxy: Varnish listening on port 80
The problem is that Varnish ...
2
votes
1answer
205 views
Nginx vhost on non-standard port not working
I am attempting to use varnish as a front-end proxy to Nginx.
When I attempt to using the following as my vhost configuration:
server {
listen 8080;
server_name playwithbits.com ...
0
votes
1answer
785 views
Varnish 3.0.2 to Apache2 sometimes return error 503
Hey guys I hope you can help me out here.
I have an Ngingx parsing http and https to a varnish cache(3.0.2). From the varnish it is sent to apache2. Now I have for some time been tracking some ...
0
votes
1answer
285 views
First request too slow even if I have a load balancer in the back
I have an Apache 2 on Centos + bind with a wordpress website on it (e.g example.com). I have also set up, on another server in a different country a load balancer (varnish:80 + nginx 127.0.0.1:8080) ...
3
votes
2answers
621 views
Varnish client.ip says 127.0.0.1
So I have a setup like Nginx -> varnish -> apache2
If I get a request with a static file it is sent through nginx to varnish and back to nginx again since its a lot faster than letting apache2 server ...
1
vote
2answers
863 views
Varnish and Connection Flood (DoS - DDoS)
I've been playing around with the Varnish cache server and I got my webpage up lightning fast, it gets 97 Points in Google's Pagespeed and 100 @ Pingdom's. I used Varnish (proxies to nginx), NGINX ...
2
votes
1answer
228 views
Load balance HTTP based on a percentage of traffic or requests?
I want to have v1 of my application in one pool and version v1.1 in another pool and then slowly ramp up the traffic going to pool two and reduce it to pool one.
Can anyone show some concrete ...