Apache reverse proxy with SSL configuration file example 


September 22, 2014 22:06:26    Last update: September 22, 2014 22:06:26
This config file sets up a reverse proxy from HTTPS to backend HTTPS, assuming mod_proxy and mod_proxy_http already loaded.
<IfModule mod_ssl.c>
	<VirtualHost _default_:443>
    ServerName my.fabulous.proxy

    # turn on SSL for proxy
    SSLProxyEngine on

    # turn off name check for backend server SSL cert
    SSLProxyCheckPeerCN Off
    SSLProxyCheckPeerName Off

    # Give location of backend server SSL cert, if self-signed
    SSLProxyCACertificateFile /etc/ssl/certs/my-backend-server.pem

    ProxyPass /path-to-be-proxied https://my.backend.server
    ProxyPassReverse /path-to-be-proxied https://my.backend.server

    #   SSL Engine Switch:
    #   Enable/Disable SSL for this virtual host.
    SSLEngine on

    #   A self-signed (snakeoil) certificate can be created by installing
    #   the ssl-cert package. See
    #   /usr/share/doc/apache2/README.Debian.gz for more info.
    #   If both key and certificate are stored in the same file, only the
    #   SSLCertificateFile directive is needed.
    SSLCertificateFile	/etc/ssl/certs/ssl-cert-snakeoil.pem
    SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
Share |
| Comment  | Tags