nginx: [warn] 25570#25570: conflicting server name “www.example.com” on 0.0.0.0:80, ignored
I need to migrate my server from a soon expiring Centos 7 VPS running Apache. The new VPS is on Ubuntu 24.04. In addition to migrating the server, I’d like to switch from Apache to Nginx. The following is my configuration and I don’t know why I’m getting a “conflicting server name error.” As far as I understood, to alias a subdomain, you put the domain and the subdomain in same server_name line. Am I mistaken?