how would i host more than 2 sites on the same port and IP address?

Francis Daly francis at
Fri Jan 15 00:17:36 UTC 2021

On Wed, Jan 13, 2021 at 05:31:55PM -0500, rveerman wrote:

Hi there,

> possible to host more than 2 sites on the same IP and port, distinguishing
> between the sites only by means of the actual server name as it's entered
> into the browser..

You run a single instance of nginx with multiple server{} blocks with
the same "listen" directives but different "server_name" directives.

> specifically, i want to host,,,
> and on the same IP and port (443, ssl)..

See the somewhat old,
especially the "Server Name Indication" part at

> i really hope this is possible with nginx.

Basically, it Just Works, if the client (browser) is any way adequate
for modern https.

Good luck with it,

Francis Daly        francis at

More information about the nginx mailing list