Proxying with/without listen in server block

Does having a listen directive in a server block over ride blocks
without?

I have a slightly complex set up, proxying traffic depending on url to
various other machines on the network.

Something a bit like this: Nginx Proxy Settings - Pastebin.com

The middle block hogs all the traffic, and all requests are sent to
mysssl.example.com.

What am I missing?

Posted at Nginx Forum:

Am I missing this:

“If a server is the only server for a listen port, then nginx will not
test
server names at all (and will not build the hash tables for the listen
port). However, there is one exception. If a server name is a regular
expression with captures, then nginx has to execute the expression to
get
the captures.”

http://nginx.org/en/docs/http/server_names.html

Posted at Nginx Forum:

On Wed, Aug 14, 2013 at 05:48:38AM -0400, tcbarrett wrote:

Hi there,

Am I missing this:

I think you’re missing this:

http://nginx.org/en/docs/http/request_processing.html#mixed_name_ip_based_servers

coupled with the default value for “listen”, as in “what is meant by not
having a listen in a server block”, which is at
http://nginx.org/r/listen

The answer to your original question:

Does having a listen directive in a server block over ride blocks without?

is “yes, if the listen directive is different from the default”.

f

Francis D. [email protected]