how would i host more than 2 sites on the same port and IP address?
Francis Daly
francis at daoine.org
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 example.com, v2.example.com, mail.example.com,
> and somesite.com on the same IP and port (443, ssl)..
See the somewhat old
http://nginx.org/en/docs/http/configuring_https_servers.html,
especially the "Server Name Indication" part at
http://nginx.org/en/docs/http/configuring_https_servers.html#sni
> 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,
f
--
Francis Daly francis at daoine.org
More information about the nginx
mailing list