Answer the question
In order to leave comments, you need to log in
How to listen to ipv6 addresses for two domains in nginx?
Hello. I'm trying to make two domains available via IPV6. There are two configs: the first site and the second.
Both files (with the exception of the server_name
ssl settings) contain the following lines:
server {
listen 80;
listen [::]:80 ipv6only=on;
...
}
server {
listen 443;
listen [::]:443 ipv6only=on;
...
}
server {
listen 80 default_server;
listen [::]:80 ipv6only=on;
server_name localhost;
root /var/www/http;
}
duplicate listen options for [::]:443
. Don't understand why duplicate if I want to listen on ipv6 on both sites. How to fix the situation, tell me, please?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question