nginx 简单的代理配置

下载 nginx :http://nginx.org/en/download.html

下载相应版本 后解压目录 我这边自己因为是 W7 下载到桌面。

打开目录 C:\Users\Administrator\Desktop\nginx-1.15.0\conf  找到 nginx.conf

 增加 以下配置,以下配置可以增加多个

server
        {
            listen 需要监听的端口;
            server_name 监听地址;
            location / {
                proxy_pass 转发地址;
            }
        }

猜你喜欢

转载自blog.csdn.net/qswdcs1/article/details/81121967