wiki:Apache2

Version 2 (modified by krit, 3 years ago) (diff)

--

Apache2

SSL Apache2 reverse proxy

[root@Bluefin sites-enabled]# pwd
/etc/apache2/sites-enabled
[root@Bluefin sites-enabled]# more sslHost2.conf 
<VirtualHost *:443>
    #DocumentRoot /var/www/html
    ServerName www.anundatech.com
        SSLEngine on
        SSLCertificateFile /etc/apache2/star_anundatech_com_187980155/star_anundatech_com.crt
        SSLCertificateKeyFile /etc/apache2/star_anundatech_com_187980155/key_star_anundatech_com.txt
        SSLCertificateChainFile /etc/apache2/star_anundatech_com_187980155/DigiCertCA.crt
    ProxyRequests Off
    SSLProxyEngine On
    ProxyPreserveHost On
    <Proxy *>
        AddDefaultCharset Off
        Order deny,allow
        Allow from all
    </Proxy>
    ProxyPass / http://127.0.0.1:8081/
    ProxyPassReverse / http://127.0.0.1:8081/
    ErrorLog ${APACHE_LOG_DIR}/error.log
</VirtualHost>

Then start simple HTTP Server with

[krit@Bluefin T2]$ python3 -m http.server --bind 127.0.0.1 8081

On any browser just type in https://www.anundatech.com