Okay I have edited my question :)
I would like to point all traffic at my dedicated server running Nginx and have that handle 70-80% of the load while also distributing the traffic to some other VPS machines running identical source.
I have generated what I think would be the additional parts to my existing server block:
Could I setup the dedicated machines server block using something like this?
upstream my-servers {
ip_hash;
server 127.0.0.1:80 weight=8; #Dedicated
server x.x.x.x:80 weight=2; # VPS1
server x.x.x.x:80 weight=2; # VPS2
server x.x.x.x:80 weight=2; # VPS3
}
location / {
proxy_pass http://my-servers;
etc....
}
would specifying the localhost like that be valid?
Here is my current working config:
server {
listen 80;
root /var/www/vhosts/www.domain.co.uk/;
index index.php;
server_name domain.co.uk www.domain.co.uk;
gzip on;
gzip_static on;
gzip_http_version 1.0;
gzip_disable "MSIE [1-6].";
gzip_vary on;
gzip_comp_level 2;
gzip_proxied any;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
fastcgi_read_timeout 180;
fastcgi_intercept_errors off;
location / {
try_files $uri $uri/ /index.php;
if ($http_host ~* "^domain.co.uk"){
rewrite ^(.*)$ http://www.domain.co.uk$1 redirect;
}
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_split_path_info ^(.+.php)(.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
The site is actually PHP but its a proxy script serving other sites web pages there is still no database.