Re: can Apache proxy convert a HTTP request to HTTPS and proxy it to a HTTPS Server?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Nov 16, 2007 8:14 PM, Qingshan Xie <xieq_49@xxxxxxxxx> 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@xxxxxxxxx
krist@xxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux