1. 程式人生 > >Apache代理轉發http到https

Apache代理轉發http到https

proxy engine requests con nec bsp apache deny div

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>

Apache代理轉發http到https