【问题标题】:Apache proxypass does not allow HTTP_POSTApache proxypass 不允许 HTTP_POST
【发布时间】:2016-06-10 02:42:15
【问题描述】:

我的服务器上有很多服务器别名。所有这些都需要发布到原始站点才能从 HTTP POSTS 中获取结果。我无法让帖子正常工作。奇怪的是 Ajax 调用 DO WORK 但不是 HTTP_POST。这个问题快把我逼疯了。有人可以帮帮我吗?

这是我网站的 Apache 虚拟主机:

ServerName xxx-mtl.xxx.net
    ServerAlias xxx-mtg.xxx.net xxx-est.xxx.net xxx-prd.xxx.net xxx-mau.xxx.net xxx-lan.xxx.net xxx-lav.xxx.net xxx-cot.xxx.net  xxx-cha.xxx.net xxx-bas.xxx.net xxx-abi.xxx.net xxx-out.xxx.net

    SSLProxyEngine On
    ProxyRequests Off

    ProxyPass        / https://xxx.xxx.net:443/
    ProxyPassReverse / https://xxx.xxx.net:443/
    ProxyRemote      * https://127.0.0.1:3128

    SetEnv proxy-sendchunked 1

    SSLEngine on
    SSLCertificateFile /etc/httpd/conf/star.xxx.net.crt
    SSLCertificateKeyFile /etc/httpd/conf/star.xxx.net.key
    SSLCertificateChainFile /etc/httpd/conf/gd_bundle-g2-g1.crt

    LogLevel warn
    ErrorLog logs/xxx.net-error_log
    CustomLog logs/xxx.net-access_log common

提前致谢!

【问题讨论】:

    标签: apache ssl reverse-proxy proxypass


    【解决方案1】:
    ProxyPass        / https://xxx.xxx.net:443/
    ProxyPassReverse / https://xxx.xxx.net:443/
    ProxyRemote      https://127.0.0.1:3128 *
    

    参考:setting up apache behind a forward proxy

    尝试代理远程 * 最后

    【讨论】:

      猜你喜欢
      • 2013-11-26
      • 1970-01-01
      • 1970-01-01
      • 2015-10-15
      • 2017-06-27
      • 1970-01-01
      • 2018-02-12
      • 2012-09-19
      • 1970-01-01
      相关资源
      最近更新 更多