curl - nginx reverse proxy to a docker container from host doesn't work on certain ports -
in nginx.conf have
server { gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
listen 80; server_name localhost; proxy_buffering off; location /blog/ { proxy_redirect off; proxy_http_version 1.1; proxy_set_header connection ""; proxy_pass http://172.17.0.94:9001/; include /etc/nginx/proxy_params; } location /admin/ { proxy_redirect off; proxy_http_version 1.1; proxy_set_header connection ""; proxy_pass http://172.17.0.94:9000/; include /etc/nginx/proxy_params; } location /api/ { proxy_redirect off; proxy_http_version 1.1; proxy_set_header connection ""; proxy_pass http://172.17.0.94:1337/; include /etc/nginx/proxy_params; } }
the reverse proxy works , loads admin content not /api or /blog content though can curl both of them ip , port. more familiar nginx might know what's wrong here?
Comments
Post a Comment