Welcome! Log In Create A New Profile

Advanced

Re: Include additional files

April 26, 2013 02:05AM
> Ok. So the upstream block has to be in the nginx.conf. I thought I
> could
> this one export to a separate file, too.

yes, you can (include your upstream-config and any other part).
you just need to place it into the right context, e.g. inside
a http { ... } - block and not inside a server { ... } - block

http://wiki.nginx.org/HttpUpstreamModule#upstream

>
> I was wondering why I still got the error message after I deleted the
> upstream block in nginx.conf and had it only in my included file. So
> the
> upstream configuration must be in nginx.conf?

every upstream-config for each of your server-parts gets a **unique** name,

what does $ grep -Rn "loadbalancer" /etc/nginx/*
gives you back? might be just a typo.


>
SubjectAuthorPosted

Include additional files

Jörg KastningApril 25, 2013 03:10AM

Re: Include additional files

mottoApril 25, 2013 03:15AM

Re: Include additional files

Jörg KastningApril 26, 2013 01:48AM

Re: Include additional files

mexApril 26, 2013 02:05AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 63
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready