Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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:

  1. Setting up a complex Apache reverse proxy
  2. Apache as reverse proxy for https server
share|improve this question
    
Is the problem with URLs referenced in HTML/CSS/JS resources that aren't loading with the internal name? –  Shane Madden Oct 19 '12 at 6:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.