Version 4 (modified by 3 years ago) (diff) | ,
---|
Apache2
Enable following module
a2enmod proxy a2enmod proxy_http a2enmod proxy_http2 a2enmod proxy_ajp
SSL Apache2 reverse proxy
[root@Bluefin sites-enabled]# pwd /etc/apache2/sites-enabled [root@Bluefin sites-enabled]# more sslHost2.conf <VirtualHost *:443> 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
After that restart 'systemctl restart apache2', on any browser just type in https://www.anundatech.com