【发布时间】:2015-07-28 12:33:29
【问题描述】:
我无法访问我的客户服务器(生产)上的特定文件类型。
以下是 cURL 的结果:
curl "http://domain.tld/fonts/glyphicons-halflings-regular.eot" -I
HTTP/1.1 200 OK
Date: Tue, 28 Jul 2015 12:06:23 GMT
Server: Apache/2.2.15 (Red Hat)
Last-Modified: Tue, 19 May 2015 15:32:20 GMT
ETag: "14023-4f42-516710421e900"
Accept-Ranges: bytes
Content-Length: 20290
Connection: close
Content-Type: application/vnd.ms-fontobject
文件在这里。 但是当我尝试获取文件内容时:
curl "http://domain.tld/fonts/glyphicons-halflings-regular.eot"
curl: (56) Recv failure: Connection was reset
我(还)不能访问客户服务器,所以我试图猜测这里出了什么问题。
到目前为止的工作情况:
curl "https://domain.tld/fonts/glyphicons-halflings-regular.eot" --insecure
它在 HTTPS 中工作,即使没有证书(这就是我使用 --insecure 的原因)。我得到了文件内容。
如果客户从本地 URL 访问文件,则可以获取该文件。
我可以访问服务器上的所有其他文件,甚至在字体目录中。 我无法访问所有 .eot 文件,即使在其他目录中也是如此。
所以我认为这是这两个问题之一: - Apache 配置/.htaccess 问题。 - 代理/反向代理问题。
你怎么看? 我应该做什么样的其他测试? 我应该向客户询问哪些信息?
谢谢。
【问题讨论】:
标签: apache http mime-types reverse-proxy file-type