Welcome! Log In Create A New Profile

Advanced

Re: Multiple https website with IPv6

Francis Daly
January 02, 2018 06:04AM
On Tue, Jan 02, 2018 at 01:40:20AM -0500, Kurogane wrote:

Hi there,

> I am using nginx with multiples https with a single IPv4 and dedicated IPv6
> for each domain.

Looking at your (edited) config...

> server {
> listen 443 ssl http2;
> server_name domain.com;
> return 301 https://www.$server_name$request_uri;
> }
>
> server {
> listen 443 default_server ssl http2;
> server_name www.domain.com;
> }

> server {
> listen 443 ssl http2;
> server_name domain2.com;
> return 301 https://www.$server_name$request_uri;
> }
>
> server {
> listen 443 ssl http2;
> server_name www.domain2.com;
> }

It looks to me like your question is "how do I run multiple https web
sites on a single IP address?".

If that is the case, then the modern answer is "use SNI".

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

> What's wrong with my config? If work on IPv6 why not in IPv4 is in same
> config block?

You have a dedicated IPv6 address. You have a shared IPv4 address.

It is not "IPv6 works, IPv4 fails"; it is "dedicated works, shared fails".

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Multiple https website with IPv6

Kurogane January 02, 2018 01:40AM

Re: Multiple https website with IPv6

Francis Daly January 02, 2018 06:04AM

Re: how do I run multiple https web sites on a single IP address

Kurogane January 02, 2018 11:27AM

Re: how do I run multiple https web sites on a single IP address

Valentin V. Bartenev January 02, 2018 11:36AM

Re: how do I run multiple https web sites on a single IP address

Francis Daly January 02, 2018 05:56PM

Re: how do I run multiple https web sites on a single IP address

Kurogane January 03, 2018 02:23PM

Re: how do I run multiple https web sites on a single IP address

Francis Daly January 03, 2018 05:40PM

Re: how do I run multiple https web sites on a single IP address

Kurogane January 04, 2018 07:19PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 172
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready