#静态资源多目录发布测试
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 配置静态网站
阅读 16
阅读 78
阅读 80
推荐阅读
阅读 1,502
阅读 1,704
阅读 955
阅读 1,520
阅读 4,891
阅读 1,352
阅读 1,052
阅读 2,992
阅读 916
阅读 1,410