nginx

windows系统配置本机域名访问程序目录的修改文件的路径:C:\windows \system 32\drivers \etc下的host文件中添加域名

./nginx -s reload重启nginx

反向代理:在conf中的nginx.conf 添加如下代码

location /baidu {

proxy_pass http://www.baidu.com/;

index index.html index.htm;

}

你可能感兴趣的:(nginx)