# ã°ã°ã£ããã©ãæ¥æ¬èªã§ã®æ å ±ããªãã£ãã®ã§æ¸ãã¦ããã
Apacheã§ã¯ãApacheでパラメータに「%2F」(/の符号化文字列)が含まれていると404(Not Found)が返されるãã®ã¨ã³ããªã§æ¸ããéãã"AllowEncodedSlashes"ãã£ã¬ã¯ãã£ããå©ç¨ãããã¨ã§ã符å·åããã"/"(ã¹ã©ãã·ã¥)æåã%2Fããæ±ããã¨ãåºæ¥ã¾ãã
ããã¯ãRailsã¢ããªã±ã¼ã·ã§ã³ã稼åããã¦ããApache + Passengerç°å¢ã§ãå¯è½ãªããã§ãããPassengerã®ãã¼ã¸ã§ã³2.2.5以éã§ã¯ã以ä¸ã®Passengerã®è¨å®ãPassengerAllowEncodedSlashesãããããã¦è¨è¿°ããå¿ è¦ãããã¾ãã
PassengerAllowEncodedSlashes on
ä¸è¨ãæå¹ã«ããå ´åã¯ãPassengerã®ããã¥ã¡ã³ãã«ãè¨è¼ããã¦ãã¾ããã"AllowEncodedSlashes"ã¨"PassengerAllowEncodedSlashes"ã®ä¸¡æ¹ãè¨è¿°ããå¿
è¦ãããã¾ãã
Is it important that you turn on both AllowEncodedSlashes and PassengerAllowEncodedSlashes, otherwise this feature will not work properly.
5.13.2. PassengerAllowEncodedSlashes - Phusion Passenger users guide
å°ã"PassengerAllowEncodedSlashes"ã®è¨è¿°å¯è½ãªé¨åã¨ãã¦ã¯ä»¥ä¸ã
5.13.2. PassengerAllowEncodedSlashes - Phusion Passenger users guide
- In the global server configuration.
- In a virtual host configuration block.
- In a
or block. - In .htaccess, if AllowOverride Options is on.
Passengerã®ãªãªã¼ã¹ãã¼ã(2.2.5)ã®è©²å½é¨å
[Apache] Fixed support for mod_rewrite passthrough rules
Mod_rewrite passthrough rules were not properly supported because of a bug fix for supporting encoded slashes (%2f) in URLs. Unfortunately, due to bugs/limitations in Apache, we can support either encoded slashes or mod_rewrite passthrough rules, but not both; supporting one will break the other.
Phusion Passenger 2.2.5 released - Phusion Blog
Support for mod_rewrite passthrough rules is now enabled by default; that is, support for encoded slashes is disabled by default. A new configuration option, PassengerAllowEncodedSlashes, has been added. Turning this option on will enable support for encoded slashes and disable support for mod_rewrite passthrough rules.