Re: node.js application listening on port 8000 enabled with SSL certificate returns ERR_SSL_PROTOCOL_ERROR on browser.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Have you tried browsing to https://nodejs.mydomain.com/demo/index.html The proxy configuration in Apache will direct the connection to nodejs over port 8000.

 

Darryl Baker, GSEC, GCLD  (he/him/his)

Sr. System Administrator

Distributed Application Platform Services

Northwestern University

4th Floor

2020 Ridge Avenue

Evanston, IL  60208-0801

darryl.baker@xxxxxxxxxxxxxxxx

(847) 467-6674

 

From: Kaushal Shriyan <kaushalshriyan@xxxxxxxxx>
Reply-To: Apache httpd Users <users@xxxxxxxxxxxxxxxx>
Date: Wednesday, June 21, 2023 at 11:58 AM
To: Apache httpd Users <users@xxxxxxxxxxxxxxxx>
Subject: [users@httpd] node.js application listening on port 8000 enabled with SSL certificate returns ERR_SSL_PROTOCOL_ERROR on browser.

 

Hi,

 

I am running node.js application on port 8000 and Apache HTTP server on CentOS Linux release 7.9.2009 (Core)

 

# node --version
v16.20.0
# httpd -v
Server version: Apache/2.4.57 (IUS)
Server built:   Apr  7 2023 14:49:47
#

 

httpd.conf file configuration

#cat /etc/httpd/conf.d/nodejsnodejsssl.conf
<VirtualHost *:443>
    SSLEngine On
    SSLProxyEngine On
    ServerName nodejs.mydomain.com
    SSLCertificateFile /etc/letsencrypt/live/nodejs.mydomain.com/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/nodejs.mydomain.com/privkey.pem
    SSLCertificateChainFile /etc/letsencrypt/live/nodejs.mydomain.com/chain.pem
    <Location />
        ProxyPass http://localhost:8000/
    </Location>
</VirtualHost>

 

When I am trying to access the URL https://nodejs.mydomain.com:8000/demo/index.html, I am encountering the below error on the browser.

 

This site can’t provide a secure connection
nodejs.mydomain.com sent an invalid response.
ERR_SSL_PROTOCOL_ERROR

 

Please comment if the above httpd conf file is incorrect or If i am missing anything. Thanks in advance. 

 

Best Regards,

 

Kaushal

 


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux