dimanche 26 novembre 2017

Load balancer and 2 vhosts nginx

Hello server enthousiasts!

I'm running multiple hardware servers, and now I'm installing an Nginx reverse proxy server! The Nginx server has 2 network interfaces (192.168.1.220 & 192.168.1.219). But I have a problem, I have multiple virtual hosts:

1.

listen 192.168.1.220:80;
server_name domain.com;
etc...

2.

listen 192.168.1.220:80;
server_name my.domain.com;
etc...

These are working fine but when I add the third one, the first two don't work anymore... The third one is a balancer specified in the nginx.conf.

3.

listen 192.168.1.219:2000;
server_name _;
etc...

The goal is just to get them all three working together. Thanks for your response!




Aucun commentaire:

Enregistrer un commentaire