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

 

 

相关文章:

  • 2021-11-15
  • 2021-08-09
  • 2021-11-13
  • 2022-12-23
  • 2021-08-31
  • 2021-12-03
猜你喜欢
  • 2021-06-29
  • 2021-07-14
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案