I have been trying to get my SSL configuration straight for a few hours now. I am running CentOS7. I have SSL certs generated and working correctly; I can https://myip.com/test and retrieve html via SSL.
I have a service which runs on a separate port (we'll call it port 12345, but it could be changed if need be) which runs it's own http server. I would like to access this through SSL. my .conf file in /etc/httpd/sites-available reads:
<VirtualHost *:443> ServerAdmin email@address ServerName server ServerAlias *:443 ErrorLog /var/www/html/cam/error.log SSLEngine On SSLCertificateFile /etc/pki/tls/certs/ca.crt SSLCertificateKeyFile /etc/pki/tls/private/ca.key SSLProxyEngine On ProxyRequests On ProxyPreserveHost On ProxyVia full <proxy *> Order deny,allow Allow from all </proxy> ProxyPass / http://192.168.1.90:12345/ ProxyPassReverse / http://192.168.1.90:12345/ </VirtualHost>
It was my understanding that the ProxyPass and ProxyPassReverse should forward the incoming SSL connection to the http server/service running on the local port. Am I understanding this correctly and just missing something in configuring correctly, or is this not the way to achieve that?
With the configuration shown, I receive a FORBIDDEN error, but if I place an index.html inside of /var/www/html/cam, then it shows that via SSL https.
Thanks for any help