【问题标题】:nginx reverse proxy to apache server - only fulfill nginx forwarded requestsnginx 反向代理到 apache 服务器 - 只满足 nginx 转发的请求
【发布时间】:2013-02-14 15:27:31
【问题描述】:

有一个关于这叫什么以及是否可能的问题......

我的主应用程序位于 nginx 服务器上。我的博客位于一个独立的 apache 服务器上,以确保安全。两台服务器的 IP 不同。

我正在将 domain.com/blog 请求反向代理到 wordpress apache 服务器以获取响应。有没有办法将 apache .conf 设置为仅满足通过 nginx 服务器代理的请求?我不希望有人能够直接访问 apache/wordpress ip 地址并运行应用程序。

谢谢

【问题讨论】:

    标签: apache nginx reverse-proxy


    【解决方案1】:

    我认为这样做可以:

    <Directory /mydirectory>
    
        Order Allow,Deny
    
        Allow from 0.0.0.0 #ip
        Allow from 127.0.0.0/8
    
    </Directory>
    

    【讨论】:

      猜你喜欢
      • 2018-09-10
      • 2013-11-14
      • 1970-01-01
      • 2017-07-17
      • 2020-08-19
      • 2017-08-16
      • 2016-09-07
      • 2021-07-06
      • 1970-01-01
      相关资源
      最近更新 更多