Rocket-Chat Issues with HTTPS over Apache2 Proxy

I am running RC+ on its own sub-domain exp: https://chat.domain.com:3000 - Both domain.com and chat.domain.com  have SSL setup properly & have been validated, but when I run it using HTTPS, I get this error: [ This site can’t provide a secure connection ]

 

HTTPS - https://domain.com                    => Website Works !
HTTP - http://chat.domain.com:3000       => RC sub-domain Works !

HTTPShttps://chat.domain.com:3000   => Not Working !


Also, how do I redirect if someone type HTTP://chat.domain.com or chat.domain.com to HTTPS://chat.domain.com:3000 ?

 

I appreciate all the help !

Quote · 16 Oct 2019

You don't add the port number to the subdomain.  The idea of using a subdomain is to do away from having to access through the port number.  There are a couple of ways to set up a redirect.  Are you using a control panel?

Geeks, making the world a better place
Quote · 16 Oct 2019

Thanks geek_girl ! Yes I have full access to WHM & cPanel to the site since am running RC & D7 on my own dedicated server..  Thx !

Quote · 16 Oct 2019

Hey geek_girl, I am still waiting for your solution :(

Quote · 18 Oct 2019

Did you get the chat working with just  https://chat.domain.com?

Geeks, making the world a better place
Quote · 18 Oct 2019

How are you starting the chat server?  Are you using a shell script such as start.sh or run.sh?

Geeks, making the world a better place
Quote · 18 Oct 2019

You can do a redirect in the .htaccess file but if you don't type it correctly you can 500 your site.  Look in the cPanel under domains section and see if you have a redirects button there.  Usually you will set it up to redirect http from the root / to the https://chat.domain.com  but I am not sure how cPanel form is set up.  This may help guide you: https://www.webhostinghub.com/help/learn/cpanel/manage-domains/domain-redirects

Geeks, making the world a better place
Quote · 18 Oct 2019

Now, I have ran into an issue with RocketChat and the oauth connect in Dolphin.  I can't get it to connect; it fails with unexpected end of json input.  So if you get it working please let me know.  I have RocketChat (NOT chat+) although it failed with Chat+ as well.  With RocketChat you have to have the updated node.js; with Chat+ you have to fall back to an earlier version.

So if you get it working (using Dolphin 7.3.5 here) I would like to discuss it with you.

Geeks, making the world a better place
Quote · 18 Oct 2019

by the way, you will also want to apply a ssl cert; you can use a self-signed cert but you will need to let your members know that they need to accept the security exception.  You can get free ssl certs using Let's Encrypt.

Geeks, making the world a better place
Quote · 18 Oct 2019

Thanks for your reply @geek_girl..  Yes I do have SSL setup successfully & thanks for the link you provided to redirect domains - it works fine for me with  https://www.domain.com but I am still having issues when I try to go to https://chat.domain.com  even though chat.domain.com has SSL setup up on it.. 

The problem for the subdomain is not the redirect, but rather it is not recognizing SSL for some reason..

>> I am starting RC using:  rocketchat.service below using command:   systemctl start rocketchat

[Unit]

Description=The Rocket.Chat server

After=network.target remote-fs.target nss-lookup.target nginx.target mongod.target

After=syslog.target

 

[Service]

Type=simple

Restart=always

StandardOutput=syslog

StandardError=syslog

SyslogIdentifier=RocketChat

User=rocketchat

Group=rocketchat

Environment=MONGO_URL=mongodb://localhost:27017/boonexdb?replicaSet=rs01

Environment=MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01

Environment=ROOT_URL=https://chat.boonex.com/

Environment=PORT=3000

WorkingDirectory=/opt/rcchat/boonex

ExecStart=/usr/local/bin/node /opt/rcchat/boonex/main.js

 

[Install]

WantedBy=multi-user.target

 
Thanks.
Quote · 4 Nov 2019

I am not using a service to start rocketchat but I will look and see what parameters I am using.  I can get rocketchat to start and can log into the chat with the login form but not the Dolphin oauth.  Perhaps we can help each other to get this working.

Geeks, making the world a better place
Quote · 4 Nov 2019

Hey @geek_girl - All my issues are fixed after I configured SSL Cert properly.   I was able to get RocketChat (not chat+) working with OAuth connect in Dolphin as well as FB & Twitter Connect - I am also using D7 v.3.5 same as you.  You can see my site at:   chat.naperlist.com

I am also attaching Admin screenshots for you to see..

Hope this helps..

D7-OAuth-01.JPG · 38.6K · 230 views
D7-OAuth-02.JPG · 65.4K · 224 views
Quote · 18 Nov 2019
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.