Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Server blocks order

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

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>