Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在这里,当 url 在 nginx 中包含空字符时,我有一个关于重写 url 的问题。
例如,获取 url 是
http://localhost/test/\x02x00/
如果\x00出现在 url 中,nginx 将返回 400 错误请求。
\x00
我尝试了这个重写规则,但看起来不起作用。
rewrite "/test/\x02\x00/" /new/
但是,如果我删除\x00一切正常。
有人对这种情况有任何想法吗?
根据 RFC,URL 不能包含空字符。