# Old Root URL still works after reverse proxy setup

**URL:** <https://forums.rocket.chat/t/old-root-url-still-works-after-reverse-proxy-setup/12863>\
**Category:** Community Support\
**Tags:** rocketchat-apps\
**Created:** [December 16, 2021, 9:58pm UTC](https://forums.rocket.chat/t/old-root-url-still-works-after-reverse-proxy-setup/12863 "2021-12-16T21:58:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![moesestt](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@moesestt](https://forums.rocket.chat/u/moesestt)\
**Post date:** [December 16, 2021, 9:58pm UTC](https://forums.rocket.chat/t/old-root-url-still-works-after-reverse-proxy-setup/12863/1 "2021-12-16T21:58:09Z")

</div>

### 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.

---

<div class="post-metadata">

**Author:** ![debdut.chakraborty](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/debdut.chakraborty/32/2900_2.png) [@debdut.chakraborty](https://forums.rocket.chat/u/debdut.chakraborty)\
**Post date:** [December 17, 2021, 9:22am UTC](https://forums.rocket.chat/t/old-root-url-still-works-after-reverse-proxy-setup/12863/2 "2021-12-17T09:22:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![moesestt](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@moesestt](https://forums.rocket.chat/u/moesestt)\
**Post date:** [December 17, 2021, 6:35pm UTC](https://forums.rocket.chat/t/old-root-url-still-works-after-reverse-proxy-setup/12863/3 "2021-12-17T18:35:49Z")

</div>

Thank you, this worked.
