Welcome! Log In Create A New Profile


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


> 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.


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: 77
Record Number of Users: 5 on August 04, 2015
Record Number of Guests: 244 on October 02, 2015
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready