nginx发布Asp.net程序

 

1.下载nginx

 

http://nginx.org/en/download.html
2.启动、停止nginx

 

 

启动:C:\server\nginx-1.0.2>start nginx.exe

停止:C:\server\nginx-1.0.2>nginx.exe -s stop
 

3.添加项目路径
 

修改conf文件夹下面的nginx.conf文件

 

 

server {
listen 8086;
server_name localhost;
location / {
root D:\WebSites\test1;
index Default.aspx;
proxy_pass http://127.0.0.1:87;
}

 

4.访问
 

http://localhost: 8086