Welcome! Log In Create A New Profile

Advanced

Re: configuration nginx server block [virtual host] with Ipv6.

March 09, 2017 06:06PM
Thanks for your answer, I'll specify it better:

Config Work Fine:

[domain1.conf]:

server {
listen [::]:80;
root /home/domain1/public_html;
index index.php index.html index.htm;
server_name domain1 www.domain1;
location ~ \.php$ {
fastcgi_pass [::]:9056;
}
}

[subdomain.domain1.conf]:

server {
listen 80;
root /home/domain1/public_html/subdomain;
index index.php index.html index.htm;
server_name subdomain.domain1 www.subdomain.domain1;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9056;
}
}

Config No Work :


[domain1.conf]:

server {
listen [::]:80;
root /home/domain1/public_html;
index index.php index.html index.htm;
server_name domain1 www.domain1;
location ~ \.php$ {
fastcgi_pass [::]:9056;
}
}

[subdomain.domain1.conf]:

server {
listen [::]:80;
root /home/domain1/public_html/subdomain;
index index.php index.html index.htm;
server_name subdomain.domain1 www.subdomain.domain1;
location ~ \.php$ {
fastcgi_pass [::]:9056;
}
}

The error happens when Listen and fastcgi_pass have the same port address in both domains,


Thks,
Subject Author Posted

configuration nginx server block [virtual host] with Ipv6.

Vanhels March 09, 2017 03:10PM

Re: configuration nginx server block [virtual host] with Ipv6.

Francis Daly March 09, 2017 05:38PM

Re: configuration nginx server block [virtual host] with Ipv6.

Vanhels March 09, 2017 06:06PM

Re: configuration nginx server block [virtual host] with Ipv6.

Francis Daly March 10, 2017 08:02PM

Re: configuration nginx server block [virtual host] with Ipv6.

Vanhels March 10, 2017 08:08PM

Re: configuration nginx server block [virtual host] with Ipv6.

Francis Daly March 10, 2017 08:38PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 297
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