Welcome! Log In Create A New Profile

Advanced

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

Francis Daly
January 14, 2021 07:18PM
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@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

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

rveerman January 13, 2021 05:31PM

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

rveerman January 13, 2021 05:33PM

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

Francis Daly January 14, 2021 07:18PM

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

rveerman January 14, 2021 10:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 57
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready