# Problem with ssl

**URL:** <https://forums.rocket.chat/t/problem-with-ssl/499>\
**Category:** Community Support\
**Created:** [April 5, 2018, 12:12pm UTC](https://forums.rocket.chat/t/problem-with-ssl/499 "2018-04-05T12:12:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hassanayoub85](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@hassanayoub85](https://forums.rocket.chat/u/hassanayoub85)\
**Post date:** [April 5, 2018, 12:12pm UTC](https://forums.rocket.chat/t/problem-with-ssl/499/1 "2018-04-05T12:12:33Z")

</div>

Dear,  
I have a server, and have a website on it, with many subfolders access through domain/subfolderexample and domain/subfolderexample.  
I installed rocetchatserver on my server and it is working perfectly, where the website is loaded perfectly and rocketchat is loaded on domain:3000 and the subfolders are accessed well.  
Today i tried to install ssl by following thi autossl tutorial, and it succeeded, but, after I finished installing, when i access my domain it auto redirect to the https domain, and all subfolders are redirected to rocketchat too, and the website on http domain is not working anymore!!!

How can I make that the rocketchat ssl just work on https domain:3000 and keep my website on http domain and https domain working and subfolders too?

Thanks

---

<div class="post-metadata">

**Author:** ![frdmn](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/frdmn/32/198_2.png) [@frdmn](https://forums.rocket.chat/u/frdmn)\
**Post date:** [April 5, 2018, 2:19pm UTC](https://forums.rocket.chat/t/problem-with-ssl/499/2 "2018-04-05T14:19:37Z")

</div>

Since you mentioned AutoSSL, I assume you’re using the Snap installation right?

Can you show us your current Caddy configuration?

---

<div class="post-metadata">

**Author:** ![hassanayoub85](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@hassanayoub85](https://forums.rocket.chat/u/hassanayoub85)\
**Post date:** [April 5, 2018, 10:21pm UTC](https://forums.rocket.chat/t/problem-with-ssl/499/3 "2018-04-05T22:21:31Z")

</div>

Right, installed through snap on ubuntu 14.04

Caddy file:

```auto
bixma.com
proxy / localhost:3000 {
  websocket
  transparent
}

```

Caddy status:

```auto
~# sudo systemctl status snap.rocketchat-server.rocketchat-caddy
snap.rocketchat-server.rocketchat-caddy.service - Service for snap application rocketchat-server.rocketchat-caddy
   Loaded: loaded (/etc/systemd/system/snap.rocketchat-server.rocketchat-caddy.service; enabled)
   Active: active (running) since Fri 2018-04-06 01:18:56 EEST; 56s ago
 Main PID: 1375 (caddy)
   CGroup: name=dsystemd:/system/snap.rocketchat-server.rocketchat-caddy.service
           └─1375 caddy -conf=/var/snap/rocketchat-server/1246/Caddyfile -host=localhost:8080

Apr 06 01:19:10 vps128207 rocketchat-server.rocketchat-caddy[1375]: Activating privacy features... done.
Apr 06 01:19:10 vps128207 rocketchat-server.rocketchat-caddy[1375]: https://bixma.com
Apr 06 01:19:10 vps128207 rocketchat-server.rocketchat-caddy[1375]: http://bixma.com
Apr 06 01:19:10 vps128207 rocketchat-server.rocketchat-caddy[1375]: WARNING: File descriptor limit 1024 is too low for production servers. At least 8192 is recommended. Fix with "ulimit -n 8192".

```

---

<div class="post-metadata">

**Author:** ![oliver](https://avatars.discourse-cdn.com/v4/letter/o/85f322/32.png) [@oliver](https://forums.rocket.chat/u/oliver)\
**Post date:** [July 18, 2018, 2:38pm UTC](https://forums.rocket.chat/t/problem-with-ssl/499/4 "2018-07-18T14:38:35Z")

</div>

Hi, I am having the same issue with the same error.

I have tried manually adjusting the limit but have not had any luck as yet.

Did you manage to solve the issue?
