Virtual hosts sharing same port

A. Schulze sca at andreasschulze.de
Mon Apr 16 09:19:09 UTC 2018


Frank Liu:

> Can I use different listen parameters for virtual hosts using the same
> port? Eg, one vh has “listen 443 ssl;” and the other one has “listen 443
> ssl h2;”

no, that's impossible (I think...)

https://nginx.org/r/listen
...
The listen directive can have several additional parameters specific  
to socket-related system calls. These parameters can be specified in  
any listen directive, but only once for a given address:port pair.
...

Andreas





More information about the nginx mailing list