Apache代理转发http到https

site.conf
ProxyPass /maps https://maps.googleapis.com/maps

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule ssl_module modules/mod_ssl.so


<IfModule mod_proxy.c>
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
SSLProxyEngine on
ProxyPass /maps https://maps.googleapis.com/maps
ProxyPassReverse /maps https://maps.googleapis.com/maps
</IfModule>

 

posted @ 2018-06-21 11:50  aboys  阅读(959)  评论(0编辑  收藏  举报