關於 nginx 自動 urldecode問題 - Linux

Table of Contents


請問一下各位, 最近在測試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

--

All Comments

Tracy avatarTracy2015-05-18
reverse_proxy的話 只要pass後面有帶path(/也算)
nginx就會decode 要不不帶path 不然就要多加module
Isla avatarIsla2015-05-21
再把它encode回去