• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

Nginx conflicting server name

maxstore

New member
Jul 7, 2023
9
0
1
Hi,

I got the following warning from Nginx:
nginx: [warn] conflicting server name "mydomain.com" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "mydomain.com" on [::]:80, ignored
nginx: [warn] conflicting server name "mydomain.com" on [::]:443, ignored
nginx: [warn] conflicting server name "www.mydomain.com" on [::]:443, ignored
nginx: [warn] conflicting server name "mydomain.com" on 0.0.0.0:443, ignored
nginx: [warn] conflicting server name "www.mydomain.com" on 0.0.0.0:443, ignored

I have the www subdomain and the root domain. Normally it should be redirect to the subdirectory /var/www/html/wordpress/, but it goes to the root directory. Can anybody help?
 
if there are multiple server_names defined or none at all, it will always jump to default_server.

Rename the other server_name directives in the site config files and it should work if you reload nginx
 
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock