Need to allow encoded slashes on Apache

后端 未结 7 2013
我寻月下人不归
我寻月下人不归 2020-11-30 20:12

I\'m currently trying to place a URL within a URL. For example:

http://example.com/url/http%3A%2F%2Fwww.url2.com

I\'m aware that I have to

7条回答
  •  渐次进展
    2020-11-30 20:46

    I'm getting the same problem with "AllowEncodedSlashes On", and have tried placing the directive in a couple different places: apache2.conf, httpd.conf, and inside a section, as per an example at http://www.jampmark.com/web-scripting/5-solutions-to-url-encoded-slashes-problem-in-apache.html.

    If you haven't already, you might want to set your logging level to debug (another directive) and see if you get the error:

    found %2f (encoded '/') in URI (decoded='/url/http://www.url2.com'), returning 404

    other not found errors don't provide this info in the logs. Just another diagnostic...

    Good luck (to both of us)!

提交回复
热议问题