Welcome! Log In Create A New Profile

Advanced

Server blocks order

Posted by Beckett 
Server blocks order
January 29, 2015 07:26AM
Greetings everyone. I've made some research on this matter, but couldn't find anything specific, though the question may seem trivial.
According to the documentation, Nginx routes incoming request to the server block labeled as default if it couldn't find an exact match, and from what I've seen if there's none then it selects the arbitrary one - I assume, the 1st in its config file with all includes expanded. My question is what server block Nginx considers "first"? In what order all server blocks are combined from all configuration files? Thank you in advance.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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