简体   繁体   English

转发HTTPS代理Apache不起作用并且没有日志

[英]Forward HTTPS Proxy Apache not working and no logs

I'm a newbie to Apache and have configured apache Forward HTTP proxy already and working fine. 我是Apache的新手,已经配置了Apache Forward HTTP代理,并且工作正常。 I have enabled SSL web server with a signed certificate and web link is reaching in https port https://:3299 我已启用具有签名证书的SSL Web服务器,并且Web链接已到达https端口https://:3299

I have enabled required modules , 我已启用所需的模块,

mod_proxy_http.so mod_proxy_http2.so mod_proxy.so mod_proxy_connect.so mod_proxy_http.so mod_proxy_http2.so mod_proxy.so mod_proxy_connect.so

SSLEngine On
'SSLProxyEngine On
AllowCONNECT 3299 
ProxyRequests On
ProxyVia On                    
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off'

But still the forward proxy is not working through HTTPS port 3299 and I'm getting the "ERR_EMPTY_RESPONSE" 但是,转发代理仍然无法通过HTTPS端口3299正常工作,并且我收到了“ ERR_EMPTY_RESPONSE”

There are no logs reported. 没有日志报告。 ANy idea what I'm missing 知道我想念的是什么

Thanks, Pradeep 谢谢,Pradeep

Managed to fix issue by following steps 通过以下步骤设法解决问题

  1. Add the ProxyRequests On and AllowCONNECT directives in httpd.conf file 在httpd.conf文件中添加ProxyRequests On和AllowCONNECT指令
  2. Add name (as same as CN name in certificate) in virtual host directive as below 在虚拟主机指令中添加名称(与证书中的CN名称相同),如下所示

    Virtualhost sitename(same as CN ) :3299 Virtualhost站点名称(与CN相同):3299

now able to use HTTPS forward proxy using Apache 现在可以使用Apache使用HTTPS转发代理

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM