Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

successdav's avatar

Conflicting server name

I was not having this problem until I tried to reinstall my ssl certificate then this error shows up now when I try to visit sp-movies.com/wp-admin it will redirect me to nigeriaschoolinfo.com

when I run this code sudo nginx -t then this error shows up

nginx: [warn] conflicting server name "www.sp-movies.com" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "www.sp-movies.com" on [::]:80, ignored
nginx: [warn] conflicting server name "www.sleettech.com" on 0.0.0.0:443, ignored
nginx: [warn] conflicting server name "www.stechmax.com" on 0.0.0.0:443, ignored
nginx: [warn] conflicting server name "www.sleettech.com" on [::]:443, ignored
nginx: [warn] conflicting server name "www.stechmax.com" on [::]:443, ignored
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
forge@stechmax:/etc/nginx/sites-enabled$ client_loop: send disconnect: Connection reset by peer

I have followed this guide here

https://stackoverflow.com/questions/11426087/nginx-error-conflicting-server-name-ignored

but I cant see anywhere file with default~ or a leading ~ as discussed in the stackoverflow question

Thanks for your help

0 likes
3 replies
successdav's avatar

and when I run ls -lah this is what I get

forge@stechmax:/etc/nginx/sites-enabled$ ls -lah
total 8.0K
drwxr-xr-x  2 root root 4.0K Jan 24 17:58 .
drwxr-xr-x 10 root root 4.0K Jan 24 22:48 ..
lrwxrwxrwx  1 root root   36 Jun 13  2019 catch-all -> /etc/nginx/sites-available/catch-all
lrwxrwxrwx  1 root root   48 Jan  2 11:42 nigeriaschoolinfo.com -> /etc/nginx/sites-available/nigeriaschoolinfo.com
lrwxrwxrwx  1 root root   40 Jun 17  2019 sleettech.com -> /etc/nginx/sites-available/sleettech.com
lrwxrwxrwx  1 root root   40 Jun 25  2019 sp-movies.com -> /etc/nginx/sites-available/sp-movies.com
lrwxrwxrwx  1 root root   39 Jun 13  2019 stechmax.com -> /etc/nginx/sites-available/stechmax.com
lrwxrwxrwx  1 root root   36 Jan  2 11:42 wices.org -> /etc/nginx/sites-available/wices.org
forge@stechmax:/etc/nginx/sites-enabled$
successdav's avatar

Still haven't been able to fix this issue, anyone cares to offer a helping hand? Please do

1 like
KanakaDurgaAkula's avatar

Maybe you have a duplicate configuration with the same server_name by accident

Please or to participate in this conversation.