# Unable to setup Rocket Chat with NGINX reverse proxy

**URL:** <https://forums.rocket.chat/t/unable-to-setup-rocket-chat-with-nginx-reverse-proxy/6280>\
**Category:** Community Support\
**Created:** [March 29, 2020, 8:12pm UTC](https://forums.rocket.chat/t/unable-to-setup-rocket-chat-with-nginx-reverse-proxy/6280 "2020-03-29T20:12:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mariossgr](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@mariossgr](https://forums.rocket.chat/u/mariossgr)\
**Post date:** [March 29, 2020, 8:12pm UTC](https://forums.rocket.chat/t/unable-to-setup-rocket-chat-with-nginx-reverse-proxy/6280/1 "2020-03-29T20:12:14Z")

</div>

I’m trying to get RC to work with NGINX as a reverse proxy (subfolder). I want RC to be accessed from [mydomain.com/rocketchat](http://mydomain.com/rocketchat), but I am unable to make progress. I either get a white page back or currently RC is stuck at the loading screen.

NGINX Configuration:  
#–START ROCKETCHAT CONFIG–  
location /rocketchat {  
proxy\_pass [http://127.0.0.1:3001/rocketchat;](http://127.0.0.1:3001/rocketchat;)  
proxy\_http\_version 1.1;  
proxy\_set\_header Upgrade $http\_upgrade;  
proxy\_set\_header Connection “upgrade”;  
proxy\_set\_header Host $http\_host;  
proxy\_set\_header X-Real-IP $remote\_addr;  
proxy\_set\_header X-Forward-For $proxy\_add\_x\_forwarded\_for;  
proxy\_set\_header X-Forward-Proto http;  
proxy\_set\_header X-Nginx-Proxy true;  
proxy\_redirect off;  
}  
#–END ROCKETCHAT CONFIG–

I have properly set the ROOT URL properly https + domain + /rocketchat (sorry, cant post more than two links :P)  
All help is appreciated

### Server Setup Information

- Version of Rocket.Chat Server: 2.4.11
- Operating System: Ubuntu 18.04
- Deployment Method: snap
- Number of Running Instances: single instance
- DB Replicaset Oplog:
- NodeJS Version: 8.17.0
- MongoDB Version: 3.6.14
- Proxy: nginx
- Firewalls involved: Disabled during installation for testing.

### Any additional Information

The console is filled with 404 errors such as “Unable to find resource at mydomain/sounds/droplet.mp3” and similar.  
NOTE: I am using 3001 as the port instead of 3000.

---

<div class="post-metadata">

**Author:** ![dwaynem](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dwaynem/32/1640_2.png) [@dwaynem](https://forums.rocket.chat/u/dwaynem)\
**Post date:** [March 29, 2020, 10:08pm UTC](https://forums.rocket.chat/t/unable-to-setup-rocket-chat-with-nginx-reverse-proxy/6280/2 "2020-03-29T22:08:40Z")

</div>

change your proxy\_pass statement to  
`proxy_pass http://127.0.0.1:3001;`
