看板 Linux 關於我們 聯絡資訊
請問一下各位, 最近在測試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
danny8376: reverse_proxy的話 只要pass後面有帶path(/也算) 05/15 09:40
danny8376: nginx就會decode 要不不帶path 不然就要多加module 05/15 09:40
danny8376: 再把它encode回去 05/15 09:41