Project

General

Profile

Support #399

Using mod_proxy to Proxy SSL Traffic on Apache 2.2

Added by Daniel Curtis over 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Server
Target version:
-
Start date:
06/06/2014
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:

Description

I had a virtual host that needed to proxy SSL traffic to another host inside my DMZ. In order to accomplish this I used Apache mod_proxy and added the following to my vhost configuration:

<VirtualHost *:443>
  ServerAdmin root@example.com
  DocumentRoot "/usr/local/www/apache22/data/www.example.com" 
  ServerName www.example.com
  ErrorLog "/var/log/www.example.com-error_log" 
  CustomLog "/var/log/www.altservice.com-access_log" common

  <IfModule mod_ssl.c>
    SSLEngine on
    SSLProxyEngine on
    SSLCertificateFile /usr/local/etc/apache22/ssl/www.example.com.crt
    SSLCertificateKeyFile /usr/local/etc/apache22/ssl/www.example.com.key
    SSLCACertificateFile /usr/local/etc/apache22/ssl/www.example.com.bundle
  </IfModule>

  ProxyRequests Off
  <Proxy *>
    Order deny,allow
    Allow from all
  </Proxy>

  <Location />
    ProxyPass https://www.example.com/
    ProxyPassReverse https://www.example.com/
  </Location>
</VirtualHost>

This will take all SSL web traffic and proxy it to the host inside the DMZ.

Also available in: Atom PDF