Nginx通过反向代理将https访问地址代理至内网-九五小庞

server {
        listen       7090 default_server;
        listen       [::]:7090 default_server;
        #server_name  _;
        root         /usr/share/nginx/html;
        
        location / {
        proxy_pass https://www.baidu.com;
        proxy_http_version 1.1;
        proxy_set_header Host www.baidu.com;
        proxy_connect_timeout 15s;
        proxy_read_timeout 15s;
        proxy_send_timeout 15s;
        proxy_set_header Connection "";
        proxy_buffering off;
        proxy_request_buffering off;
    }
    }

Nginx通过反向代理,将https访问地址代理至内网中,通过内网IP和端口即可进行访问

posted @ 2025-01-09 09:36  九五小庞  阅读(130)  评论(0)    收藏  举报