Welcome! Log In Create A New Profile

Advanced

Multiple servers with the same IP

Posted by Naruhiko315 
Multiple servers with the same IP
February 19, 2015 11:16AM
Hello,

I have 2 domain names "pvp-blastfight.fr" and "oxycraft.net" that redirect to the same IP address: 37.187.143.173:80. Despite my configurations that changes the location of the site based on the domain name, it does not work. The domain name "pvp-blastfight.fr" always takes precedence over "oxycraft.net", therefore the location of the site files also ...

Do you have any idea how to fix this? Here is my setup: http://pastebin.com/vqY641Jy.

Do you also know why the site is displayed very slowly now? I qu'NGINX printing is slow at times.

PS: Sorry for my bad English ...
_____________________________________
Bonjour,

J'ai 2 noms de domaines " pvp-blastfight.fr " et " oxycraft.net " qui redirigent sur la même adresse IP : 37.187.143.173:80. Malgré mes configurations qui change la localisation du site en fonction du nom de domaine, ça ne fonctionne pas. Le nom de domaine "pvp-blastfight.fr" prend toujours le dessus sur " oxycraft.net ", par consequent la localisation des fichiers du site également...

Avez-vous une idée de comment régler ce problème ? Voici ma configuration: http://pastebin.com/vqY641Jy .

Est-ce que vous savez également pourquoi est-ce que le site s'affiche très lentement par moment ? J'ai l'impression qu'NGINX est lent par moment...
Re: Multiple servers with the same IP
February 19, 2015 12:07PM
Sounds like nginx is not restarting properly or you have edited the conf file where nginx is not looking.

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Multiple servers with the same IP
February 19, 2015 12:18PM
I changed only the configuration file and it is placed at your disposal. I just stopers NGINX the service and start: no change ...
______________________________
J'ai modifié uniquement le fichier de configuration et il est mit à votre disposition. Je viens de stoper le service NGINX et de le lancer: aucun changement...
Re: Multiple servers with the same IP
February 19, 2015 02:12PM
Make a mistake in the conf file, restart nginx and check the logfiles, do you see an error about the (test)mistake?

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Multiple servers with the same IP
February 19, 2015 03:28PM
Yes, if I delete something, I add one; or I put things unknown I get errors that appear.
____________________
Oui, si je supprime quelque chose, je rajoute un ; ou je mets des choses inconnues j'ai des erreurs qui s'affichent.
Re: Multiple servers with the same IP
February 19, 2015 04:49PM
The conf looks good, maybe DNS wrong? enable debug logging to see where it's going to when accessing each domain.

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Multiple servers with the same IP
February 20, 2015 06:13AM
DNS configuration refers both on the field for two sites /
____________________________
La configuration DNS renvoie bien sur le domaine pour les deux sites :/
Re: Multiple servers with the same IP
February 20, 2015 06:53AM
Look at the debug logs, they are detailed enough to show where each request is going to and by with server block it is handled.

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Multiple servers with the same IP
February 20, 2015 01:30PM
How can I enable it?
________________
Comment est-ce que je peux l'activer ?

EDIT: http://pvp-blastfight.fr/log.txt



Edited 1 time(s). Last edit at 02/20/2015 01:33PM by Naruhiko315.
Re: Multiple servers with the same IP
February 20, 2015 02:48PM
Your second server is named;
server_name www.oxycraft.net;
Have you tried www.oxycraft.net instead of oxycraft.net ?

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Multiple servers with the same IP
February 20, 2015 05:46PM
Thank you! In fact the problem was there!
_________________
Merci ! En effet le problème venait de là !
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 267
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready