【问题标题】:Is this proxypass setting safe这个proxypass设置安全吗
【发布时间】:2011-08-14 18:39:10
【问题描述】:

我在 80 端口使用 apache 和在 8080 使用 jboss 维护一个网站。此外,我有一个直接从 apache 提供的 wordpress 博客。因此,对 www.mysite.com/blog 的所有请求都由 apache 提供服务,对 www.mysite.com/ 的所有请求都由 jboss 提供服务。为此,我定义了以下 proxypass 设置。

<VirtualHost *:80>
  <Proxy *>
    Order deny,allow
    Allow from all
  </Proxy>

  ProxyPass /blog !
  ProxyPass / http://localhost:8080/index.jsp retry=0
  ProxyPassReverse / http://localhost:8080/index.jsp
  ProxyPreserveHost on

  LogFormat "%h (%{X-Forwarded-For}i) %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
  ErrorLog /var/log/httpd/elasticbeanstalk-error_log
  TransferLog /var/log/httpd/elasticbeanstalk-access_log
</VirtualHost>

这些设置安全吗?我正在阅读 apache 文档,他们提到了这一点

警告不要启用 ProxyRequests 代理,直到你有 保护您的服务器。开放式代理服务器对您的 网络和整个互联网。

所以我不确定我还需要做些什么来确保这些设置的安全,

【问题讨论】:

  • 最好在 serverfault.com 上询问,该站点的系统管理员姊妹站点 ....
  • 谢谢。这个问题我动不了。所以我接受了答案并在 serverfault 中提出了一个新问题。
  • @fvu 请投票支持迁移而不是鼓励交叉发布。
  • @shane 2 票接近的票之一是我的,除了投票并指出原因,我还能做什么?

标签: apache proxy security reverse-proxy mod-proxy


【解决方案1】:

ProxyRequests 是它自己的命令 - 它允许任意代理连接,因此客户端可以发出 GET http://evil.com/something.html 之类的东西 - 你应该可以使用 ProxyPass..

【讨论】:

    猜你喜欢
    • 2011-04-16
    • 1970-01-01
    • 1970-01-01
    • 2010-10-11
    • 1970-01-01
    • 1970-01-01
    • 2011-06-02
    • 2012-12-12
    相关资源
    最近更新 更多