Apache: Setting up a reverse proxy configuration with SSL with url rewriting
- by user1172468
There is a host: secure.foo.com that exposes a webservice using https
I want to create a reverse proxy using Apache that maps a local http port on a server internal.bar.com to the https service exposed by secure.foo.com
Since it a web service I need to map all urls so that a path:
https://secure.foo.com/some/path/123
is accessible by going to:
http://internal.bar.com/some/path/123
Thanks.
I've gotten this far:
<VirtualHost *:80>
ServerName gnip.measr.com
SSLProxyEngine On
ProxyPass / https://internal.bar.com/
</VirtualHost>
I think this is working except for the url rewriting.
Some resources I've found on this are:
Setting up a complex Apache reverse proxy
Apache as reverse proxy for https server