apache - 如何在 ubuntu 中启用 AllowEncodedSlashes

标签 apache ubuntu

正如标题所说,我很难在 Ubuntu 中启用 AllowEncodedSlashes

我把

AllowEncodedSlashes On

在/etc/apache2/apache2.conf 和/etc/apache2/sites-available/default 里面,但是在访问带有编码斜杠的 url 之后仍然有 404 页 error 404 not found

最佳答案

我一直在寻找这个。但是找不到 Ubuntu 14.4 和 Apache 2.4.7 的明确答案。我想到了。这是我所做的:

转到 /etc/apache2/sites-available

打开 000-default.conf 文件。

添加AllowEncodedSlashes NoDecode<VirtualHost>里面标签

保存并重启 Apache。

** apache2.conf不需要修改。仅修改 000-default.conf文件而不是 default-ssl.conf

关于apache - 如何在 ubuntu 中启用 AllowEncodedSlashes,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36512851/

相关文章:

apache - 为插件 [资源 :1. 1.6] 配置动态方法时出错:无法获取属性 'pluginPath'

linux - moodle 重定向到 "Incorrect access detected"

apache - 将端口转发到安全的 Apache Web 服务器

linux - svn: E000002: 无法打开请求的 SVN 文件系统

ubuntu - Ruby fog gem 导致服务器无法运行 : cannot load such file -- xmlrpc/client (LoadError)

linux - 如何将安装在linux中的Qt从一个版本升级到更高版本

apache - Hive 版本模式

ruby-on-rails - 错误 : yard not installed

wordpress - 限制对 WordPress LEMP 堆栈中文件管理器插件的访问

python - 是否可以从命令行找到 python 包的路径?