Hi guys,
I have several high profile php sites and i want to load balance them onto 3 (or more) web servers stored on virtual machines on top of vCenter.
I want to easily give more perfomance to all sites in case i need, just by adding another drone virtual machine to the setup.
I have
1) Front end web server (nginx 1.02) with upstream to main and second
2) main.website.com (nginx 1.02)
3) second.website.com (nginx 1.02)
main and second website.com host all theese websites which are replicated between them. main and second run nginx with apc and php-fpm
the setup works perfectly for the first website (with upstream and proxy_pass to second website). Unfortunatelly, for the second website, it just returns the first website (HTTP 1.0 for upstream ? but not for proxy_pass ?). The strange fact is that, when i use proxy_pass directly to the vhost it runs perfectly.
The conf is the following:
1) upstream rra {
server main.website1.ro max_fails=3 fail_timeout=30s;
server apps1.website1.local max_fails=3 fail_timeout=30s weight=5;
}
location / {
proxy_cache two;
proxy_cache_valid 200 302 2m;
proxy_cache_valid 404 1m;
proxy_cache_valid any 1m;
proxy_cache_key "rrai$request_uri";
gzip on;
gzip_http_version 1.1;
gzip_vary on;
expires 1m;
proxy_pass http://rra;
this is the first website which works, for the second website nope
Any ideas ?
Vlad