简体   繁体   English

两个冲突的X-Powered-By标头

[英]Two conflicting X-Powered-By headers

Recently I was curious about the technology that certain site was using, so I have taken a look at the headers. 最近,我对某些站点正在使用的技术感到好奇,因此我看了看标题。 To my joy, what appeared was: 令我高兴的是:

X-Powered-By: ASP.NET
X-Powered-By: PHP/5.3.2

I am curious: what else, in addition to just overriding the headers (eg. for obfuscation/security purposes), could lead the web application to produce such response headers? 我很好奇:除了覆盖标头(例如出于混淆/安全目的)之外,还有什么可以导致Web应用程序生成此类响应标头? Assuming that the site developers / administrators did not manipulate mentioned headers, what is the case for such response headers to appear? 假设站点开发人员/管理员未操纵提到的标题,那么出现这种响应标题的情况是什么?

If this helps in any way, maybe some other returned headers will help: 如果这样做有任何帮助,也许其他返回的标头会有所帮助:

Server: Microsoft-IIS/6.0
Content-Type: text/html; charset=Windows-1250

(the rest of the headers look pretty normal, so I am not listing them) (其余标题看起来很正常,因此我没有列出它们)

I am not asking the question on whether I can run PHP on IIS etc., rather about what possible scenarios could result in such two X-Powered-By headers. 我不是在问我是否可以在IIS等上运行PHP,而是要问哪种可能的情况导致两个X-Powered-By标头。 Maybe some reverse proxy (written in PHP, serving pages generated by ASP.NET)? 也许一些反向代理(用PHP编写,服务于ASP.NET生成的页面)?

I'd guess that it is pretty normal for a IIS server to serve both ASP.NET (should be nearly built-in) and additionally PHP as a module. 我想对于IIS服务器来说,同时提供ASP.NET(应该是几乎内置的)和PHP作为模块是很正常的。 ASP files with .aspx , PHP with .php . 带有.aspx ASP文件,带有.php PHP .php

可能这不是在描述页面,而是在描述Web服务器-即Web服务器同时安装了ASP.NET和php。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM