Welcome! Log In Create A New Profile

Advanced

Re: Include additional files

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


>
Subject Author Posted

Include additional files

Jörg Kastning April 25, 2013 03:10AM

Re: Include additional files

motto April 25, 2013 03:15AM

Re: Include additional files

Jörg Kastning April 26, 2013 01:48AM

Re: Include additional files

mex April 26, 2013 02:05AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 244
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