Load Balance Advice

Igor Sysoev is at rambler-co.ru
Tue Jun 24 10:53:18 MSD 2008


On Mon, Jun 23, 2008 at 10:36:24PM +0100, Alan Williamson wrote:

> I have been using lighttpd for a long time now, sitting in front of a 
> series of back end servers.  I have been told to check out nginx because 
> lighttpd is now starting to consume near on 100% of the CPU.
> 
> I have setup nginx as a frontend load balancer and so far good, except 
> got a wee problem with the content coming back.  nginx seems to be 
> rewriting all the URL hosts inside the returned content, to "myproject".
> 
> I do not wish nginx to fiddle with the content at all.  No need to. 
> Just leave it please! ;)
> 
> I have pasted the "standard" example here
> ___________________________
> 
> upstream myproject {
>   server 10.0.0.150:80 weight=3;
>   server 10.0.0.153:80;
> }
> 
> server {
>  listen       80;
>  server_name  localhost;
>  location / {
>   proxy_redirect     off;
>  }
> }
> ___________________________
> 
> What have i missed?

nginx does not change HTML.
Probably you see redirects from backend. nginx can rewrite them, but
you disable it: "proxy_redirect  off".
Could you write example, what you see and what proxy_pass directive
do you use ?


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list