I'm trying to use nginx to proxy pass to two docker containers. Here is my upstream conf file:
upstream api_servers {
server http://192.168.49.4:49155;
server http://192.168.49.4:49156;
}
This is what I get trying to load it:
nginx: [emerg] invalid host in upstream "http://192.168.49.4:49155" in /etc/nginx/conf.d/api_upstream.conf:3
nginx: configuration file /etc/nginx/nginx.conf test failed
Once I removed the http:// prefixes the error stopped occuring. Why is that?