The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From:
Juan Angulo Moreno <apost... @gmail.com>
Date: Sun, 4 Mar 2012 00:41:13 -0430
Local: Sun, Mar 4 2012 12:11 am
Subject: nginx load balancing
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 ng... @nginx.org http://mailman.nginx.org/mailman/listinfo/nginx
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Edho Arief <e... @myconan.net>
Date: Sun, 4 Mar 2012 12:14:31 +0700
Local: Sun, Mar 4 2012 12:14 am
Subject: Re: nginx load balancing
2012/3/4 Juan Angulo Moreno <apost
... @gmail.com>:
> 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/ "
If this is the load balancer's error log, seems like the config hasn't
been reloaded. Try `pkill -HUP nginx`.
_______________________________________________ nginx mailing list ng... @nginx.org http://mailman.nginx.org/mailman/listinfo/nginx
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Juan Angulo Moreno <apost... @gmail.com>
Date: Sun, 4 Mar 2012 01:10:31 -0430
Local: Sun, Mar 4 2012 12:40 am
Subject: Re: nginx load balancing
Hi Edho,
I ran the command you suggested but still does not show the images and ccs.
thanks
On Sun, Mar 4, 2012 at 12:44 AM, Edho Arief <e
... @myconan.net> wrote:
> 2012/3/4 Juan Angulo Moreno <apost
... @gmail.com>:
>> 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/ "
> If this is the load balancer's error log, seems like the config hasn't > been reloaded. Try `pkill -HUP nginx`.
> _______________________________________________ > nginx mailing list > ng... @nginx.org > http://mailman.nginx.org/mailman/listinfo/nginx
--
Juan A. Moreno
http://apostols.net Fingerprint GPG: 0FEE E0BF 2904 FE77 1682 2171 C842 DBF1 34BC CD04
_______________________________________________ nginx mailing list ng... @nginx.org http://mailman.nginx.org/mailman/listinfo/nginx
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Edho Arief <e... @myconan.net>
Date: Sun, 4 Mar 2012 12:41:45 +0700
Local: Sun, Mar 4 2012 12:41 am
Subject: Re: nginx load balancing
2012/3/4 Juan Angulo Moreno <apost
... @gmail.com>:
> Hi Edho,
> I ran the command you suggested but still does not show the images and ccs.
Still the same error?
_______________________________________________ nginx mailing list ng... @nginx.org http://mailman.nginx.org/mailman/listinfo/nginx
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Juan Angulo Moreno <apost... @gmail.com>
Date: Sun, 4 Mar 2012 01:13:19 -0430
Local: Sun, Mar 4 2012 12:43 am
Subject: Re: nginx load balancing
now not show erros but dont show the images and ccs files.
On Sun, Mar 4, 2012 at 1:11 AM, Edho Arief <e
... @myconan.net> wrote:
> 2012/3/4 Juan Angulo Moreno <apost
... @gmail.com>:
>> Hi Edho,
>> I ran the command you suggested but still does not show the images and ccs.
> Still the same error?
> _______________________________________________ > nginx mailing list > ng... @nginx.org > http://mailman.nginx.org/mailman/listinfo/nginx
--
Juan A. Moreno
http://apostols.net Fingerprint GPG: 0FEE E0BF 2904 FE77 1682 2171 C842 DBF1 34BC CD04
_______________________________________________ nginx mailing list ng... @nginx.org http://mailman.nginx.org/mailman/listinfo/nginx
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Edho Arief <e... @myconan.net>
Date: Sun, 4 Mar 2012 12:56:02 +0700
Local: Sun, Mar 4 2012 12:56 am
Subject: Re: nginx load balancing
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
"Valentin V. Bartenev" <n... @vbart.ru>
Date: Sun, 4 Mar 2012 18:04:17 +0400
Local: Sun, Mar 4 2012 9:04 am
Subject: Re: nginx load balancing
On Sunday 04 March 2012 09:43:19 Juan Angulo Moreno wrote:
> now not show erros but dont show the images and ccs files.
Do you clear your browser cache?
wbr, Valentin V. Bartenev
_______________________________________________ nginx mailing list ng... @nginx.org http://mailman.nginx.org/mailman/listinfo/nginx
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Juan Angulo Moreno <apost... @gmail.com>
Date: Sun, 4 Mar 2012 09:38:18 -0430
Local: Sun, Mar 4 2012 9:08 am
Subject: Re: nginx load balancing
181.17.XX.XX - - [04/Mar/2012:09:32:53 -0430] "GET /css/style.css
HTTP/1.1" 200 3870 "
http://edge.lb.tld " "Mozilla/5.0 (Macintosh; Intel
Mac OS X 10_7_3) AppleWebKit/535.11 (KHTML, like Gecko)
Chrome/17.0.963.56 Safari/535.11"
181.17.XX.XX - - [04/Mar/2012:09:34:09 -0430] "GET
/img/common/logo.gif HTTP/1.1" 404 257 "
http://edge.lb.tld "
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.11
(KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
181.17.XX.XX - - [04/Mar/2012:09:34:09 -0430] "GET
/img/common/top_bg.png HTTP/1.1" 404 1007 "
http://edge.lb.tld "
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.11
(KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
On Sun, Mar 4, 2012 at 1:26 AM, Edho Arief <e
... @myconan.net> wrote:
> 2012/3/4 Juan Angulo Moreno <apost
... @gmail.com>:
>> now not show erros but dont show the images and ccs files.
> Check the access log.
> _______________________________________________ > nginx mailing list > ng... @nginx.org > http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
ng
... @nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Juan Angulo Moreno <apost... @gmail.com>
Date: Sun, 4 Mar 2012 09:40:05 -0430
Local: Sun, Mar 4 2012 9:10 am
Subject: Re: nginx load balancing
I cleaned the cache and still images are not displayed. I am using 2
browsers for testing and always get the same result.
On Sun, Mar 4, 2012 at 9:34 AM, Valentin V. Bartenev <n... @vbart.ru> wrote:
> On Sunday 04 March 2012 09:43:19 Juan Angulo Moreno wrote:
>> now not show erros but dont show the images and ccs files.
> Do you clear your browser cache?
> wbr, Valentin V. Bartenev
> _______________________________________________ > nginx mailing list > ng... @nginx.org > http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
ng
... @nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Edho Arief <e... @myconan.net>
Date: Sun, 4 Mar 2012 21:10:39 +0700
Local: Sun, Mar 4 2012 9:10 am
Subject: Re: nginx load balancing
2012/3/4 Juan Angulo Moreno <apost
... @gmail.com>:
> 181.17.XX.XX - - [04/Mar/2012:09:32:53 -0430] "GET /css/style.css
> HTTP/1.1" 200 3870 "
http://edge.lb.tld " "Mozilla/5.0 (Macintosh; Intel
> Mac OS X 10_7_3) AppleWebKit/535.11 (KHTML, like Gecko)
> Chrome/17.0.963.56 Safari/535.11"
> 181.17.XX.XX - - [04/Mar/2012:09:34:09 -0430] "GET
> /img/common/logo.gif HTTP/1.1" 404 257 "
http://edge.lb.tld "
> "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.11
> (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
> 181.17.XX.XX - - [04/Mar/2012:09:34:09 -0430] "GET
> /img/common/top_bg.png HTTP/1.1" 404 1007 "
http://edge.lb.tld "
> "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.11
> (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
Are you sure your backends are configured properly? Have you tried
accessing the backends directly?
_______________________________________________ nginx mailing list ng... @nginx.org http://mailman.nginx.org/mailman/listinfo/nginx
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
António P. P. Almeida <a... @perusio.net>
Date: Sun, 04 Mar 2012 16:02:55 +0100
Local: Sun, Mar 4 2012 10:02 am
Subject: Re: nginx load balancing
On 4 Mar 2012 06h11 CET, apost
... @gmail.com wrote:
> 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; > } > }
Perhaps the links in the site do not point to the proper
location. With a config as simple as yours, the problem is either in
the app or in the backend configuration. You have no root defined so
Nginx is trying the open the files with the default root:
/usr/local/nginx/html
I suggest you enable the debug log and trace the request:
http://nginx.org/en/docs/debugging_log.html
--- appa
_______________________________________________ nginx mailing list ng... @nginx.org http://mailman.nginx.org/mailman/listinfo/nginx
You must
Sign in before you can post messages.
You do not have the permission required to post.