查看“︁Nginx: Remove double slashes from URLs nginx去双斜杆”︁的源代码
←
Nginx: Remove double slashes from URLs nginx去双斜杆
跳转到导航
跳转到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
=Q= 百度云加速出了问题 有些 站出了 dobule slashes https://m.cailu.net/download =slove= <pre> ssl_prefer_server_ciphers on; # Remove double slashes from URLs merge_slashes off; rewrite ^([^.]*?\/)\/+(.*)$ $1$2 permanent; location / { # proxy_pass http://12.16.20.8:3394; add_header X-Frame-Options SAMEORIGIN; proxy_pass http://proxy_node_nuxt_mobile.net; } #这个应该也是行的 可以通过nginx对多个斜杠进行处理 如访问 public//view//a//test.html 重定向到 public/view/a/test.html merge_slashes off; rewrite (.*)//(.*) $1/$2 permanent; </pre> =see also= [https://gist.github.com/JustThomas/74d04d0ae542b6dab9495bce24c0741c nginx: Remove double slashes from URLs ]
返回
Nginx: Remove double slashes from URLs nginx去双斜杆
。
导航菜单
个人工具
登录
命名空间
页面
讨论
大陆简体
查看
阅读
查看源代码
查看历史
更多
搜索
导航
首页
我的导航
关于我
shell
python
ops
linuxchina.net
blog.linuxchina
最近更改
随机页面
帮助
工具
链入页面
相关更改
特殊页面
页面信息