如何将 AllowEncodedSlashes 添加到 httpd.conf Ubuntu

How to add AllowEncodedSlashes On to httpd.conf Ubuntu

如何在 httpd.conf 中添加 AllowEncodedSlashes On?

我正在使用 Apache/2.4.18 ...

我在 /etc/apache2

中找不到 httpd.conf

我读了这篇文章说 httpd.conf 不再 https://help.ubuntu.com/lts/serverguide/httpd.html

那么,我该如何添加 AllowEncodedSlashes On?

并非所有参数都必须存在,一些参数具有默认值并且不需要明确定义,而另一些默认情况下也不需要。所以在你需要的上下文中定义它,看看它是否符合你的期望。

根据官方文档,它的默认值是 "off",所以如果没有指定,那就是你得到的。

仅在服务器配置和虚拟主机上下文中定义也有效。

http://httpd.apache.org/docs/2.4/mod/core.html#allowencodedslashes