Nginx配置
安装
- 解压
- 配置 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
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Hblog!