首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Apache http_proxy随机404

Apache http_proxy随机404
EN

Server Fault用户
提问于 2019-04-11 23:49:49
回答 1查看 616关注 0票数 0

我将UbuntuServer16.04上的Apache2配置为外部web服务器的http反向代理。

这里有一些非常奇怪的东西,当页面被加载时,它的一些资源(.css,.js)返回404,不是所有的时间,而是随机的。

为了找出正在发生的事情,我使用cURL从服务器内部使用curl -v -k "https://127.0.0.1:443/proxyed_path/css/resource.css"进行了检查,并发现,正如我已经知道的,有时我得到了正确的结果,但是当我反复执行这个命令时,我会得到Google404错误。

这是我正在犯的错误:

代码语言:javascript
复制
> Host: 127.0.0.1
> User-Agent: curl/7.47.0
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Date: Thu, 11 Apr 2019 23:42:44 GMT
< Server: sffe
< Content-Type: text/html; charset=UTF-8
< X-Content-Type-Options: nosniff
< Content-Length: 1594
< X-XSS-Protection: 0
< Access-Control-Allow-Origin: *
<
<!DOCTYPE html>
<html lang=en>
  <meta charset=utf-8>
  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
  <title>Error 404 (Not Found)!!1</title>
  <style>
    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
  </style>
  <a href=//www.google.com/><span id=logo aria-label=Google></span></a>
  <p><b>404.</b> <ins>That’s an error.</ins>
  <p>The requested URL <code>/js/ui-bootstrap-tpls-1.3.1.min.js</code> was not found on this server.  <ins>That’s all we know.</ins>

谷歌怎么能回应我的要求,难道是网站(医院)有防火墙做一些不好的事情吗?

EN

回答 1

Server Fault用户

发布于 2019-04-12 13:27:41

最后,我删除了mod_proxy,并在这个服务器中托管了一个站点的副本,这不是最干净的解决方案,但至少它工作得很完美。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/962688

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档