Rocket.Chat's Community Open Call 🎤 Jan 19th, 2022 Join us!

Old Root URL still works after reverse proxy setup

Description

After setting up the Nginx SSL Reverse Proxy and seeing it works correctly, I went and tested the old link. To my dismay, it still works and allows the connection to the server not over https. I know this is not controlled by nginx but how do I disable the http connection to my rocket chat server.

Example:
Https
https://rocketchat.mydomain.com Works

http://rocketchat.mydomain.com:3000 Also works (but i dont want it to)

Nginx is setup to only listen for traffic on port 443 and require ssl.

Server Setup Information

  • Version of Rocket.Chat Server: 4.2
  • Operating System: Ubuntu 20.04
  • Deployment Method: Manual Install
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: 12.18.4
  • MongoDB Version: 4.4.10
  • Proxy: nginx
  • Firewalls involved: none

Any additional Information

I did change the Root URL to the new HTTPS address. So it should not be the root URL.

Hi, add another environment variable to the service file BIND_IP=127.0.0.1, this should fix the issue.

Thank you, this worked.

1 Like