Hi, I got an error trying to add a new site in a subdomain (without multisite). Specifically, when I add this site to staging/wordpress_sites.yml:
wordpress_sites:
stage.obrunete.observatorio-municipal-brunete.org:
site_hosts:
- stage.obrunete.observatorio-municipal-brunete.org
repo: git@github.com:aitormendez/obrunete.git
branch: master
multisite:
enabled: false
...
...
If I remove this site, the server is provisioned without errors. This is the error:
nginx: [warn] conflicting server name "stage.506.red" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "stage.contraindicaciones.net" on
0.0.0.0:80, ignored
nginx: [warn] conflicting server name "stage.di-no-a-la-noche-en-blanco.net"
on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "stage.e451.net" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "stage.esterpartegas.com" on
0.0.0.0:80, ignored
nginx: [warn] conflicting server name "stage.lolafonseca.com" on 0.0.0.0:80,
ignored
nginx: [warn] conflicting server name "stage.luzdemiel.es" on 0.0.0.0:80,
ignored
nginx: [warn] conflicting server name "stage.mariadiazmontero.com" on
0.0.0.0:80, ignored
nginx: [warn] conflicting server name "stage.obrunete.observatorio-municipal-
brunete.org" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "stage.telmo.club" on 0.0.0.0:80,
ignored
nginx: [emerg] could not build server_names_hash, you should increase
server_names_hash_bucket_size: 64
nginx: configuration file /etc/nginx/nginx.conf test failed
fatal: [188.226.213.77]: FAILED! => {"changed": false, "cmd": ["nginx", "-t"], "delta": "0:00:00.020439", "end": "2016-10-15 19:55:31.986660", "failed": true, "rc": 1, "start": "2016-10-15 19:55:31.966221", "stderr": "nginx: [warn] conflicting server name \"stage.506.red\" on 0.0.0.0:80, ignored\nnginx: [warn] conflicting server name \"stage.contraindicaciones.net\" on 0.0.0.0:80, ignored\nnginx: [warn] conflicting server name \"stage.di-no-a-la-noche-en-blanco.net\" on 0.0.0.0:80, ignored\nnginx: [warn] conflicting server name \"stage.e451.net\" on 0.0.0.0:80, ignored\nnginx: [warn] conflicting server name \"stage.esterpartegas.com\" on 0.0.0.0:80, ignored\nnginx: [warn] conflicting server name \"stage.lolafonseca.com\" on 0.0.0.0:80, ignored\nnginx: [warn] conflicting server name \"stage.luzdemiel.es\" on 0.0.0.0:80, ignored\nnginx: [warn] conflicting server name \"stage.mariadiazmontero.com\" on 0.0.0.0:80, ignored\nnginx: [warn] conflicting server name \"stage.obrunete.observatorio-municipal-brunete.org\" on 0.0.0.0:80, ignored\nnginx: [warn] conflicting server name \"stage.telmo.club\" on 0.0.0.0:80, ignored\nnginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 64\nnginx: configuration file /etc/nginx/nginx.conf test failed", "stdout": "", "stdout_lines": [], "warnings": []}
Is the first time I try to setup a subdomain1.subdomain2 URL: subdomain1.subdomain2.domain.com
I guess, I’m doing it wrong.
What is the proper way to do it? Thank you!