Compdigitec Labs

« | Home | »

Reverse proxy HTTPS with Apache

By admin | August 23, 2013

The procedure is mostly similar to the procedure with regular HTTP, but there are a few gimmicks involved here:

  1. Generate a self-signed one or purchase a SSL certificate (*.crt) for the server in question.
  2. Make sure you run ‘sudo a2enmod ssl‘ to enable SSL.
  3. Make sure you have enable the proxy module with ‘sudo a2enmod proxy‘ as well.

Below is a sample reverse HTTPS proxy configuration.

<VirtualHost *:443>
    <Proxy *>
     Order Deny,Allow
     Allow from all
    </Proxy>

 SSLEngine On
 SSLProxyEngine On
 SSLCertificateFile /etc/apache2/cert/server.crt <!-- path to your certifcate and key -->
 SSLCertificateKeyFile /etc/apache2/cert/server.key
 SSLProxyCheckPeerCN off
 SSLProxyCheckPeerExpire off
 SSLProxyCheckPeerName off

 ProxyRequests Off
 ProxyPass / https://192.168.42.3/
 ProxyPassReverse / https://192.168.42.3/
 ProxyPreserveHost On
</VirtualHost>

Replace 192.168.42.3 with the internal IP address of your server, as before (keep the http(s):// portion).

If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!

Topics: Linux | 8 Comments »

8 Responses to “Reverse proxy HTTPS with Apache”

  1. = Says:
    November 5th, 2024 at 04:37

    … [Trackback]

    […] Find More to that Topic: compdigitec.com/labs/2013/08/23/reverse-proxy-https-with-apache/ […]

  2. Accounting Phuket Says:
    November 10th, 2024 at 19:24

    … [Trackback]

    […] Find More on that Topic: compdigitec.com/labs/2013/08/23/reverse-proxy-https-with-apache/ […]

  3. เว็บรวมเกมสล็อต Says:
    November 16th, 2024 at 02:03

    … [Trackback]

    […] Here you can find 76234 more Information on that Topic: compdigitec.com/labs/2013/08/23/reverse-proxy-https-with-apache/ […]

  4. ธุรกิจงานศพ Says:
    November 17th, 2024 at 11:35

    … [Trackback]

    […] Find More here on that Topic: compdigitec.com/labs/2013/08/23/reverse-proxy-https-with-apache/ […]

  5. jaxx download Says:
    November 19th, 2024 at 09:52

    … [Trackback]

    […] Find More Info here on that Topic: compdigitec.com/labs/2013/08/23/reverse-proxy-https-with-apache/ […]

  6. ติดตั้ง ais fiber Says:
    November 20th, 2024 at 22:23

    … [Trackback]

    […] Find More to that Topic: compdigitec.com/labs/2013/08/23/reverse-proxy-https-with-apache/ […]

  7. ทัวร์ธุรกิจจีน Says:
    November 27th, 2024 at 01:37

    … [Trackback]

    […] Read More here to that Topic: compdigitec.com/labs/2013/08/23/reverse-proxy-https-with-apache/ […]

  8. Onion Shops Says:
    December 1st, 2024 at 10:37

    … [Trackback]

    […] Info on that Topic: compdigitec.com/labs/2013/08/23/reverse-proxy-https-with-apache/ […]

Comments