我的服务器上有很多服务器别名。所有这些都需要发布到原始站点以从HTTP POSTS获得结果。我无法让帖子发挥作用。奇怪的是Ajax调用DO WORK但不是HTTP_POST。这个问题让我疯了。有人可以帮帮我吗?
这是我的网站的Apache vhost:
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
提前致谢!
答案 0 :(得分:0)
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
尝试代理远程*最后