nodejs with apache over ssl
- Version:8.9.4
- Platform:Linux 4.4.0-112-generic #135-Ubuntu
i want to pass server requests on port 443 to my nodejs app.
i run node app with require('https') and port=3443, certificate.crt, certificate.key on https options.
and this apache config in virtualhost:
SSLEngine on
SSLProxyVerify none
SSLProxyEngine on
SSLCertificateFile /path/certificate.crt
SSLCertificateKeyFile /path/certificate.key
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://localhost:3443/
ProxyPassReverse / http://localhost:3443/
and when i run server apache said: Error during SSL Handshake with remote server my question is, should i start my node app with http and include certificates in virtualhost config only?
Your ProxyPass directive proxies http, not https. Change it to a https url. Check the mod_proxy docs for details.
ping @guftall
closing due to inactivity, please re-open if it is still outstanding.
Any solution for this ?