HTTP代理服务器 - Apache httpd

HTTP代理服务器 - Apache httpd

install

yum install -y httpd 
cd /etc/httpd/conf.d/
vi proxy.conf

proxy.conf

Listen 38080


  ProxyRequests on
  ProxyVia On
  SSLProxyEngine On
  SSLProxyVerify none
  SSLProxyCheckPeerCN off
  SSLProxyCheckPeerName off
  SSLProxyCheckPeerExpire off
  AddDefaultCharset off
  AllowCONNECT 443
  
    Order allow,deny
    Allow from all
  

systemctl restart httpd 重新启动服务.

curl

curl -x 127.0.0.1:38080 http://www.baidu.com  -v
curl -x 127.0.0.1:38080 https://www.baidu.com  -v

你可能感兴趣的:(系统管理)