nginx
乌希尔
这个作者很懒,什么都没留下…
展开
-
dockercompose nginx 转发本地文件,前端直接访问
前端直接访问服务器文件,nginx转发原创 2023-05-22 16:44:48 · 252 阅读 · 0 评论 -
nginx proxy_pass匹配路径
nginx proxy_pass 匹配情况在nginx中配置proxy_pass代理转发时,如果在proxy_pass后面的url中含有/,表示绝对根路径,匹配的location 路径就不在url里了;如果没有/,表示相对路径,把匹配的路径部分也给代理走,要在url里留着。proxy_pass有/,实际访问地址就没有location访问地址:http://localhost/proxy/abc.html以下是几种常见的匹配情况:第一种:location /proxy/ {proxy_pa原创 2022-04-20 09:41:45 · 4053 阅读 · 0 评论