Problem about config one virtual host with separated server blocks

Igor Sysoev igor at sysoev.ru
Mon Sep 6 15:07:34 MSD 2010


On Sun, Sep 05, 2010 at 09:56:08PM -0400, speedfirst wrote:

> Thanks for the reply, but I'm think you misunderstand my question. The
> question is NOT whether I can use multiple "server" blocks. What I to
> know is whether Nginx will merge multiple "server" blocks, which share
> the same listen and server name, into the single one. This is just like
> the "partial class" grammar in C#.

No, nginx does not merge server blocks.
nginx merges only "http" > "server" > "location".


-- 
Igor Sysoev
http://sysoev.ru/en/



More information about the nginx mailing list