help icon indicating copy to clipboard operation
help copied to clipboard

nodejs with apache over ssl

Open guftall opened this issue 8 years ago • 4 comments

  • 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?

guftall avatar Feb 01 '18 13:02 guftall

Your ProxyPass directive proxies http, not https. Change it to a https url. Check the mod_proxy docs for details.

bnoordhuis avatar Feb 01 '18 15:02 bnoordhuis

ping @guftall

gireeshpunathil avatar Mar 14 '18 04:03 gireeshpunathil

closing due to inactivity, please re-open if it is still outstanding.

gireeshpunathil avatar Mar 19 '18 09:03 gireeshpunathil

Any solution for this ?

o-ayoub avatar Jan 29 '19 15:01 o-ayoub