[問題] 關於 nginx 自動 urldecode問題

看板Linux作者 (蔥頭)時間10年前 (2015/05/15 00:39), 10年前編輯推噓0(003)
留言3則, 1人參與, 最新討論串1/1
請問一下各位, 最近在測試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://www.ptt.cc/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

05/15 09:40, , 1F
reverse_proxy的話 只要pass後面有帶path(/也算)
05/15 09:40, 1F

05/15 09:40, , 2F
nginx就會decode 要不不帶path 不然就要多加module
05/15 09:40, 2F

05/15 09:41, , 3F
再把它encode回去
05/15 09:41, 3F
文章代碼(AID): #1LLC_F3p (Linux)
文章代碼(AID): #1LLC_F3p (Linux)