Nginx停靠在给定端口上访问主机IIS网站
我在Windows10上运行docker。有关docker信息的详细信息 服务器版本:17.06.0-ceNginx停靠在给定端口上访问主机IIS网站,nginx,docker,windows-10,Nginx,Docker,Windows 10,我在Windows10上运行docker。有关docker信息的详细信息 服务器版本:17.06.0-ce 操作系统:Alpine Linux v3.5 我需要使用nginx作为在本地IIS下运行的反向porxy到web应用程序(例如) 这是我的nginx default.config server { listen 4430; server_name localhost; #root /usr/share/nginx/html; location / {
操作系统:Alpine Linux v3.5 我需要使用nginx作为在本地IIS下运行的反向porxy到web应用程序(例如) 这是我的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;
}
我正在使用IP 10.0.75.1从容器(nginx)访问我的主机
如果我不指定端口,它将按预期工作。
我应该怎样做/配置才能在特定端口上访问我的主机(IIS网站)?10.0.75.1 ip地址是什么?这是从哪里来的?10.0.75.1 ip地址是什么?那是从哪里来的?