docker-nginx-loadbalancer icon indicating copy to clipboard operation
docker-nginx-loadbalancer copied to clipboard

No Host nor X-Real-IP headers

Open ywarnier opened this issue 10 years ago • 2 comments
trafficstars

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.

ywarnier avatar Jul 30 '15 20:07 ywarnier

Sorry for the delay, my wife and I just moved recently. What do your environment variables look like?

jasonwyatt avatar Aug 19 '15 10:08 jasonwyatt

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.

ywarnier avatar Aug 19 '15 13:08 ywarnier