Nginx dockerized accessing host IIS website on a given port

I’m running docker on windows 10. Some details form docker info

Server Version: 17.06.0-ce
Operating System: Alpine Linux v3.5

  • java.net.SocketException when accessing docker host
  • Does Kubernetes evenly distribute across an ec2 cluster?
  • How to start docker container in memory?
  • Docker Quickstart Terminal crash on Mac OS X
  • Docker : How to change the location of directory images in Docker?
  • Jenkins and docker-compose
  • I need to use nginx as reverse porxy to web app running under my local IIS(e.g. http://localhost:90)

    that’s my nginx default.config

    server {
        listen 4430;
        server_name localhost;
        #root /usr/share/nginx/html;
        location / {
            proxy_pass http://10.0.75.1;#works
            #proxy_pass http://10.0.75.1:90;#does not work
        }
    
        ssl_certificate /etc/nginx/server.crt;
        ssl_certificate_key /etc/nginx/server.key;
    
        ssl on;
        ssl_session_cache  builtin:1000  shared:SSL:10m;
        ssl_protocols  TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
        ssl_prefer_server_ciphers on;
    }
    

    I’m using the IP 10.0.75.1 to access my host from the container (nginx)
    It works as expected if I do not specify the port.
    What should I do/configure to be able to access my host(IIS website) on a specific port?

  • Copy files to docker image after build
  • Migration from MySQL to postgresql using Django and Docker - relation “authtoken_token” does not exist
  • Problems when executing services within cron in a Docker container?
  • Seeing protocol error with ln for mounted volume inside docker
  • Docker exec command
  • Populate Cassandra Db using Docker
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.