Welcome! Log In Create A New Profile

Advanced

nginx load balancing

Juan Angulo Moreno
March 04, 2012 12:12AM
Hi,

I try configure nginx load balancing with 3 nodes but never show
images or ccs style from nodes and always obtain this error:

2012/03/03 22:36:43 [error] 11321#0: *7 open()
"/usr/local/nginx/html/melchor.jpg" failed (2: No such file or
directory), client: 181.XX.XX.XX, server: edge.lb.tld, request: "GET
/melchor.jpg HTTP/1.1", host: "edge.lb.tld", referrer:
"http://edge.lb.tld/"
2012/03/03 22:38:16 [error] 11321#0: *19 open()
"/usr/local/nginx/html/css/style.css" failed (2: No such file or
directory), client: 200.XX.XX.XX, server: edge.lb.tld, request: "GET
/css/style.css HTTP/1.1", host: "edge.lb.tld", referrer:
"http://edge.lb.tld/"

This is my vhost config:

upstream edge {
server 72.XX.XX.XX:80;
server 216.XX.XX.XX:80;
server 184.XX.XX.XX:80;
}

server {
server_name edge.lb.tld;

error_log /var/log/nginx/EDGE.error_log warn;

location / {
proxy_set_header Host $http_host;
proxy_pass http://edge;
}
}

Thanks you!

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx load balancing

Juan Angulo Moreno March 04, 2012 12:12AM

Re: nginx load balancing

Edho Arief March 04, 2012 12:16AM

Re: nginx load balancing

Juan Angulo Moreno March 04, 2012 12:42AM

Re: nginx load balancing

Edho Arief March 04, 2012 12:44AM

Re: nginx load balancing

Juan Angulo Moreno March 04, 2012 12:44AM

Re: nginx load balancing

Edho Arief March 04, 2012 12:58AM

Re: nginx load balancing

Juan Angulo Moreno March 04, 2012 09:10AM

Re: nginx load balancing

Edho Arief March 04, 2012 09:12AM

Re: nginx load balancing

Valentin V. Bartenev March 04, 2012 09:06AM

Re: nginx load balancing

Juan Angulo Moreno March 04, 2012 09:12AM

Re: nginx load balancing

António P. P. Almeida March 04, 2012 10:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 138
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready