| 1 | = Apache2 = |
| 2 | |
| 3 | SSL Apache2 reverse proxy |
| 4 | {{{ |
| 5 | #!sh |
| 6 | [root@Bluefin sites-enabled]# pwd |
| 7 | /etc/apache2/sites-enabled |
| 8 | [root@Bluefin sites-enabled]# more sslHost2.conf |
| 9 | <VirtualHost *:443> |
| 10 | #DocumentRoot /var/www/html |
| 11 | ServerName www.anundatech.com |
| 12 | SSLEngine on |
| 13 | SSLCertificateFile /etc/apache2/star_anundatech_com_187980155/star_anundatech_com.crt |
| 14 | SSLCertificateKeyFile /etc/apache2/star_anundatech_com_187980155/key_star_anundatech_com.txt |
| 15 | SSLCertificateChainFile /etc/apache2/star_anundatech_com_187980155/DigiCertCA.crt |
| 16 | ProxyRequests Off |
| 17 | SSLProxyEngine On |
| 18 | ProxyPreserveHost On |
| 19 | <Proxy *> |
| 20 | AddDefaultCharset Off |
| 21 | Order deny,allow |
| 22 | Allow from all |
| 23 | </Proxy> |
| 24 | ProxyPass / http://127.0.0.1:8081/ |
| 25 | ProxyPassReverse / http://127.0.0.1:8081/ |
| 26 | ErrorLog ${APACHE_LOG_DIR}/error.log |
| 27 | </VirtualHost> |
| 28 | }}} |
| 29 | |
| 30 | Then start simple HTTP Server with |
| 31 | {{{ |
| 32 | #!sh |
| 33 | [krit@Bluefin T2]$ python3 -m http.server --bind 127.0.0.1 8081 |
| 34 | }}} |
| 35 | |
| 36 | On any browser just type in '''https://www.anundatech.com''' |