Welcome! Log In Create A New Profile

Advanced

Random order of configuration file reading

All files from this thread

File NameFile Size Posted byDate 
include-sorted.patch395 bytesopen | downloadJoshua Zhu11/28/2012Read message
November 27, 2012 09:07AM
Hello,

we have a bunch of servers which are configured 100% equal expect of host specific settings like ip address in the listener using chef/puppet. Nginx seems to read include / config files not in the same order on each server.

For example we haven't defined a default vhost on each server... so nginx uses the first loaded file which is exampleA.com on server 1 and exampleB.com on server 2.

Furhtermore we use the upstream check status module, the status page is randomly ordered at each server...

Is it possible to configure nginx to read config in the alphabeticial order?

For example

vhosts/exampleA.com (1.)
vhosts/exampleB.com (2.)

...
SubjectAuthorPosted

Random order of configuration file reading

philippNovember 27, 2012 09:07AM

Re: Random order of configuration file reading Attachments

Joshua ZhuNovember 28, 2012 06:50AM

Re: Random order of configuration file reading

Antonio P.P. AlmeidaNovember 28, 2012 07:28AM

Re: Random order of configuration file reading

Antonio P.P. AlmeidaNovember 28, 2012 07:30AM

Re: Random order of configuration file reading

Maxim DouninNovember 28, 2012 09:16AM

Re: Random order of configuration file reading

Maxim DouninNovember 29, 2012 06:26PM

Re: Random order of configuration file reading

Joshua ZhuNovember 30, 2012 12:24AM

Re: Random order of configuration file reading

Gena MakhomedNovember 28, 2012 07:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 62
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 156 on March 20, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready