摘要:
配置多个站点404我选择了配置多个location。 location / { root /data/html/; index index.html index.html; } location /publicity { root /usr/local/nginx/hzcloud-timp-fron 阅读全文
posted @ 2020-04-16 12:50 shenyixin 阅读(9287) 评论(0) 推荐(1)
|
||
|
摘要:
配置多个站点404我选择了配置多个location。 location / { root /data/html/; index index.html index.html; } location /publicity { root /usr/local/nginx/hzcloud-timp-fron 阅读全文
posted @ 2020-04-16 12:50 shenyixin 阅读(9287) 评论(0) 推荐(1)
摘要:
在nginx中配置proxy_pass时,如果在proxy_pass后面的url加/,相当于是绝对根路径,则nginx不会把location中匹配的路径部分代理走;如果没有/,则会把匹配的路径部分给代理走。 下面四种情况分别用http://106.12.74.123/abc/index.html进行 阅读全文
posted @ 2020-04-16 12:49 shenyixin 阅读(2937) 评论(0) 推荐(0) |
||