Hi I am trying to configure a server and its subdomain with nginx but the nginx shows conflicting servername. I have tried these settings. Can anyone suggest how can i configure subdomain with nginx? I am getting error:
nginx: [warn] conflicting server name ":" on 0.0.0.0:3000, ignored
server{
listen 3000;
server_name : www.website.com website.com;
......
}
server{
listen 3000;
server_name : www.staging.website.com staging.website.com;
......
}
Should be:
without colon.