How to proxy http to https using Apache httpd (v2.2)
apache, google-maps
Solution
Ok after reading many solutions that involved setting up certificates, and virtual hosts etc etc. I finally found a basic config that does not require any of that.
Here is what I have used to access proxy autocomplete google places requests through local host on an installation of Apache including ssl support (version 2.2 for windows).
Edit the apache file httpd.conf
turn on the required modules...
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
go to the bottom of the file and add the following configuration for mod_proxy...
<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>
Thats it, the rest was all default configuration settings from when I installed Apache.
Further configuration details relating to apache proxy can be found at the Apache mod_proxy docs.
General Apache docs for version 2.2.
Problem
I'm trying to set up a simple proxypass in Apache httpd that will proxy certain requests. Here is what I have tried, but it doesnt seem to like the change from http to https? ``` ProxyPass /maps https://maps.googleapis.com/maps ``` Perhaps I am missing an extra step? I have read a little about setting up certificates but this seems to be long winded for such a simple task? The result I get currently is a 500 error.