作者tas72732002 (葱头)
看板Linux
标题[问题] 关於 nginx 自动 urldecode问题
时间Fri May 15 00:39:40 2015
请问一下各位, 最近在测试urlencode, urldecode,
发现nginx 自动帮我进行了urldecode, 不太清楚为什麽会自动处理,
我的配置是 nginx + php-fpm, nginx 反向代理 php-fpm
但是奇怪的是php本身没有urldecode, nginx.conf也没看到关於urldecode的设定
请问有人知道是为什麽吗? 是nginx底层会处理吗?
谢谢喔
google 一下发现也是有人碰到过 :
http://blog.phpdr.net/nginx-auto-decode.html
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 114.34.181.227
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Linux/M.1431621583.A.0F3.html
※ 编辑: tas72732002 (114.34.181.227), 05/15/2015 00:40:55
※ 编辑: tas72732002 (114.34.181.227), 05/15/2015 00:41:15
1F:→ danny8376: reverse_proxy的话 只要pass後面有带path(/也算) 05/15 09:40
2F:→ danny8376: nginx就会decode 要不不带path 不然就要多加module 05/15 09:40
3F:→ danny8376: 再把它encode回去 05/15 09:41