#静态资源多目录发布测试
server {
listen 80;
server_name www.xxx.com;
root C:/www_html;
location /pro1 {
proxy_pass http://localhost:8080;
#proxy_set_header Host $host;
#proxy_set_header X-Real-IP $remote_addr;
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location ^~ /star/ {
try_files $uri /star/index.html;
}
location ^~ /mouse_line/ {
try_files $uri /mouse_line/index.html;
}
location ^~ /imagefilters/ {
try_files $uri /imagefilters/demo.html;
}
}
Nginx 配置静态网站
阅读 444
阅读 449
阅读 610
推荐阅读
阅读 1,022
阅读 1,260
阅读 971
阅读 1,051
阅读 1,030
阅读 1,221
阅读 1,143
阅读 680
阅读 1,145
阅读 688