nginx for windows安装、使用、反向代理教程

一、下载

官网下载即可

二、安装

使用SrvanyUI自行将nginx注册为“自建服务”即可。

三、反向代理

编辑nginx.conf

修改为:

 server {
        listen       80;
        server_name  localhost;
        location / {
           root   html;
           index  index.html index.htm;
        }
        location ^~/auth/login/integration{
           proxy_pass http://blog.claves.me/about;
        }
        ...
}

如上,将/auth/login/integration反向代理至本博客。