httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krist van Besien" <krist.vanbes...@gmail.com>
Subject Re: [users@httpd] can Apache proxy convert a HTTP request to HTTPS and proxy it to a HTTPS Server?
Date Fri, 16 Nov 2007 20:52:48 GMT
On Nov 16, 2007 8:14 PM, Qingshan Xie <xieq_49@yahoo.com> wrote:
> Hello,
>
>    There is a need that an Apache server converts a HTTP request to HTTPS, and proxies
it to the backend HTTPS server.  Can an Apache instance do it?

Yes Apache can do this. However not "out of the box".
See:

http://httpd.apache.org/docs/2.0/mod/mod_ssl.html#sslproxyengine

For example add the following to your config:

SSLProxyEngine on
SSLProxyMachineCertificatePath /usr/local/apache2/conf/proxy.crt/

You can of course use another path, but it must contain the PEM
encoded root certificate used to sign the certificates the servers you
want to communicate with use. These you will have to provide yourself.

Once you have that you ought to be possible to do something like this:

ProxyPass    /mysite   https://www.myothersite.com/foo

HTH,

Krist


-- 
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message