#安全漏洞修复#
一、下载最新版Nginx压缩包
二、解压至C:\workspace\nginx-1.25.3下
三、修改conf/nginx.conf 配置文件
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://localhost:8020;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_read_timeout 600s;
}
location /api/ {
proxy_pass http://localhost:8010/api/;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_read_timeout 600s;
}
location /pic/ {
alias C:/uploadFiles/;
index index.html index.htm;
#autoindex on;
}
location /turn/ {
alias C:/turnFiles/;
index index.html index.htm;
#autoindex on;
}
location /html {
alias C:/workspace/html_V1;
index index.html index.htm;
autoindex on;
}
}
四、运行nginx.exe