nginx http proxy https

远成办公,vpn只能访问指定的ip,测试环境服务器无法直接连接的时候,使用nginx代理 测试服务地址。

server {
        listen 8599;
        server_name _;
        location / {
                proxy_pass https://10.10.0.61;
                proxy_redirect https://10.10.0.61 http://$host:8599;
        }
}
Published
Categorized as poem

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.