如何确定远程计算机上的服务器类型

发布于 2024-10-30 01:53:33 字数 108 浏览 1 评论 0原文

我有一个 Rails 网站的虚拟托管,我需要确定充当前端的服务器类型。

他们说,Apache 不用作前端服务器,但我需要以某种方式检查它。

这可能吗? 也许一些终端命令?

I have a virtual hosting of my Rails web-site and i need to determine type of server, that acts as front-end.

They say, that Apache is not used as a front-end server, but i need to check it somehow.

Is this possible ?
Maybe some terminal command ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

遗弃M 2024-11-06 01:53:33

如果我理解您的问题更正,您正在尝试确定为您的文件提供服务的网络服务器的类型,对吗?如果是这样,请使用 Fiddler(独立的免费软件应用程序)或 FireBug(FireFox 的免费插件)等工具来查看来自服务器的 HTTP 响应。在大多数情况下,您会看到一个名为“Server”的 HTTP 标头,其中包含正在使用的服务器的描述。例如(来自 cnn.com):

HTTP/1.1 200 OK
Date: Mon, 04 Apr 2011 04:24:46 GMT
Expires: Mon, 04 Apr 2011 05:21:59 GMT
Last-Modified: Fri, 29 Oct 2010 13:42:35 GMT
Cache-Control: max-age=3600
Content-Type: application/x-javascript
Accept-Ranges: bytes
**Server: Apache**
Content-Length: 1907

...或者另一个例子,来自 brinkster.com:

HTTP/1.1 200 OK
Date: Mon, 04 Apr 2011 04:28:02 GMT
**Server: Microsoft-IIS/6.0**
Set-Cookie: BrinksterM1=2; HttpOnly
X-Powered-By: ASP.NET
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 44943

您可能会也可能不会获得服务器的特定版本等 - 这取决于服务器提供的信息 - 但它这将是一种非常快速、免费的检查方式,并且可能是我采取的第一步。

If I understand your question correction, you are trying to determine the type of web server that is serving your files, correct? If so, use a tool like Fiddler (a stand-alone freeware app) or FireBug (free plug-in for FireFox) to view the HTTP responses coming from the server. In most cases you will see an HTTP header called "Server" that contains a description of the server being used. For example (from cnn.com):

HTTP/1.1 200 OK
Date: Mon, 04 Apr 2011 04:24:46 GMT
Expires: Mon, 04 Apr 2011 05:21:59 GMT
Last-Modified: Fri, 29 Oct 2010 13:42:35 GMT
Cache-Control: max-age=3600
Content-Type: application/x-javascript
Accept-Ranges: bytes
**Server: Apache**
Content-Length: 1907

...or for another example, from brinkster.com:

HTTP/1.1 200 OK
Date: Mon, 04 Apr 2011 04:28:02 GMT
**Server: Microsoft-IIS/6.0**
Set-Cookie: BrinksterM1=2; HttpOnly
X-Powered-By: ASP.NET
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 44943

You may or may not get specific versions, etc. of the server--it depends on what information the server provides--but it would be a very quick, free way way to check and would probably be the first step I would take.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文