#静态资源多目录发布测试
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 配置静态网站
阅读 403
阅读 409
阅读 552
推荐阅读
阅读 693
阅读 670
阅读 1,145
阅读 1,347
阅读 662
阅读 725
阅读 1,395
阅读 1,342