当要部署多个web程序时,先将web程序分文件夹到html,

win10下 nginx使用代理

 

 

2  修改nginx.conf 


#user  nobody;
worker_processes  1;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

#pid        logs/nginx.pid;

events {
    worker_connections  1024;
}

http {

   # include       mime.types;
	#include conf-test/test_web.conf;
    #default_type  application/octet-stream;
	root         F:/softDev/nginx-1.8.1;

    server {
        listen       80;
        server_name  webthree.com; 

        location / {
             index  index.php index.html index.htm;
        proxy_pass   https://www.kugou.com/;
        }
		
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
       
    }	

}



 

 

win10下 nginx使用代理

 

转:https://blog.csdn.net/WU5229485/article/details/84881902

相关文章:

  • 2021-10-21
  • 2022-02-21
  • 2022-01-18
  • 2021-10-14
  • 2022-12-23
  • 2022-01-20
  • 2021-07-18
  • 2021-12-16
猜你喜欢
  • 2021-06-02
  • 2021-07-22
  • 2021-05-29
  • 2021-11-24
  • 2022-12-23
  • 2021-06-28
  • 2021-05-28
相关资源
相似解决方案