docker-nginx-loadbalancer
docker-nginx-loadbalancer copied to clipboard
No Host nor X-Real-IP headers
Hi! I'm using your image to test a few things. In README.md you mention your proxy.conf should look a lot bigger than what I see. I have the following:
server 172.17.0.20:80;
server 172.17.0.22:80;
}
server {
listen 80;
listen [::]:80 ipv6only=on;
server_name docker.chamilo.net;
root /usr/share/nginx/html;
For service: CHAMILO
location / { proxy_pass http://chamilo/; }
}
The annoying bit is that it's missing the Host and X-Real-IP elements, which mean it doesn't pass the host to my backend, which then doesn't understand which vhost to manage it with.
Sorry for the delay, my wife and I just moved recently. What do your environment variables look like?
Not close to a pc/laptop at the moment but you can find the only command I launch in the README.md of the chamilo/docker-chamilo repo. I will complete this answer asap. Happy moving in.