当我们在站点上发布iframes或脚本时,我们开始得到一个错误页面。无论是来自管理员还是"test.php“页面上的测试脚本。
问题是我们不知道是什么在生成这个页面。从我所有的研究来看,似乎是Apache中设置的头部可能触发了这个错误。
我的问题是,您认为生成此页面的模块或配置是什么?你见过这样的网页吗?我在谷歌上搜索了错误信息,找不到与之匹配的文章。
附件是两张截图。我的浏览器中的一个错误页和该页面的源代码之一。
https://ibb.co/7YTK3g7 https://ibb.co/HgzhwVm
我的.htaccess也没有任何与标题相关的内容。只是基本的重写规则。
以下是更多信息:
服务器版本: Apache/2.4.25 (Debian) PHP 7.2
/usr/sbin/apache2 -l
Compiled in modules:
core.c
mod_so.c
mod_watchdog.c
http_core.c
mod_log_config.c
mod_logio.c
mod_version.c
mod_unixd.c
apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
watchdog_module (static)
http_module (static)
log_config_module (static)
logio_module (static)
version_module (static)
unixd_module (static)
access_compat_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cloudflare_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
fcgid_module (shared)
filter_module (shared)
headers_module (shared)
mime_module (shared)
mpm_prefork_module (shared)
negotiation_module (shared)
passenger_module (shared)
php7_module (shared)
proxy_module (shared)
python_module (shared)
reqtimeout_module (shared)
rewrite_module (shared)
setenvif_module (shared)
socache_shmcb_module (shared)
ssl_module (shared)
status_module (shared)我从Apache文件中注释掉了这些头文件。
apache2.conf -全部注释掉
#Header always set x-xss-protection "1; mode=block"
#Header always set x-frame-options "SAMEORIGIN"
#Header always set X-Content-Type-Options "nosniff"
#Header always set Strict-Transport-Security "max-age=31536000; preload"
#Header always set X-Permitted-Cross-Domain-Policies "none"
#Header always set Referrer-Policy "no-referrer"他们曾经在那里,我怀疑这可能来自于此,但即使有了这些注释,重新启动Apache,改变浏览器(试图隐藏),我仍然得到相同的错误页面。
任何帮助都是非常感谢的。
谢谢
发布于 2019-02-13 21:33:36
这似乎是一个CloudFlare问题。我会跟进他们的。
https://serverfault.com/questions/953805
复制相似问题