安装

  1. 解压
  2. 配置 nginx.conf

配置nginx.conf

http {
...
keepalive_requests 8192;
keepalive_timeout  65;
...

	server {
		listen       9099;
		server_name  localhost;
		client_max_body_size 3069m;  #请求体大小限制
		
		location / {
			root   html;
			index  index.html index.htm;
		}
		
		location /erp {
		root   ../Blog;
			index  index.html index.htm;
		}
		location /api {
			
			proxy_pass   http://127.0.0.1:8000;
			proxy_http_version 1.1;
			proxy_set_header Connection keep-alive;
		}
		

关闭服务

nginx.exe -s stop