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,