# Question on caddy install

**URL:** <https://forums.rocket.chat/t/question-on-caddy-install/11210>\
**Category:** Community Support\
**Created:** [May 20, 2021, 11:49pm UTC](https://forums.rocket.chat/t/question-on-caddy-install/11210 "2021-05-20T23:49:23Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![kdmiller45](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/kdmiller45/32/2811_2.png) [@kdmiller45](https://forums.rocket.chat/u/kdmiller45)\
**Post date:** [May 20, 2021, 11:49pm UTC](https://forums.rocket.chat/t/question-on-caddy-install/11210/1 "2021-05-20T23:49:23Z")

</div>

Rocket-cat install on Ubuntu 20.04 server  
Server: Dell R-610 with 96Gig ram, 2tb storage  
I installed rocket-chat via the instruction: [Setting up a RocketChat Server on Ubuntu | Ubuntu](https://ubuntu.com/tutorials/setup-rocketchat-server-on-ubuntu#2-installation)

using the snap install, all works find using port 3000  
am trying to server it to the internet, the application is working telling me caddy or a web server is installed

the documentation tell me to config it this way

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

```

but does not tell me the name of the configuration file or where it’s located  
can you assist

when I do a caddy --version it show nothing same thing for apache2 and nginx but something is severing the sites on port 3000

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [May 21, 2021, 10:24am UTC](https://forums.rocket.chat/t/question-on-caddy-install/11210/2 "2021-05-21T10:24:32Z")

</div>

OK.

Rocket runs on a local port 3000

For your own security and safety you need to put a web server in front of Rocket.

Then requests will go

External:80 \<-\> Web Server \<-\> localhost:3000  
External:443 \<-\> Web Server \<-\> localhost:3000

Note we really don’t want to use http:80 as it is insecure and will not work with the mobile apps etc.

As a web server we can use Caddy, or Apache, or Nginx. But not all 3 at the same time as they will conflict.

So which web server do you have installed at the minute?

Note we have docs here:

> **[Snaps](https://docs.rocket.chat/installing-and-updating/snaps)**

And this tells you a bit more about caddy, or how to disable it to work with another web server proxy:

> **[Auto SSL with Snaps](https://docs.rocket.chat/installing-and-updating/snaps/auto-ssl-with-snaps)**

---

<div class="post-metadata">

**Author:** ![kdmiller45](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/kdmiller45/32/2811_2.png) [@kdmiller45](https://forums.rocket.chat/u/kdmiller45)\
**Post date:** [May 21, 2021, 10:12pm UTC](https://forums.rocket.chat/t/question-on-caddy-install/11210/3 "2021-05-21T22:12:28Z")

</div>

I have apache installed now and configuring with webmin

Where is the document root and what is the name of the file so I can point apache2 to it

Thanks

Keith

![esther and me2.jpg](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/6/6e3fc7561612f44d6c150e9d5f36d1fe846f7990.jpeg)

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [May 25, 2021, 10:21am UTC](https://forums.rocket.chat/t/question-on-caddy-install/11210/4 "2021-05-25T10:21:18Z")

</div>

There is no document root for Rocket - it is a not a normal ‘html’ site. You need to run Apache with a virtualhost configured as a reverse proxy pointing to 127.0.0.1:3000 - for your own security don’t use it in a ‘pass through’ mode ot http.

> **[Configuring SSL Reverse Proxy](https://docs.rocket.chat/installing-and-updating/manual-installation/configuring-ssl-reverse-proxy#running-behind-an-apache-ssl-reverse-proxy)**

---

<div class="post-metadata">

**Author:** ![macprogeek](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@macprogeek](https://forums.rocket.chat/u/macprogeek)\
**Post date:** [June 10, 2021, 2:52am UTC](https://forums.rocket.chat/t/question-on-caddy-install/11210/5 "2021-06-10T02:52:56Z")

</div>

im having the same issue.

I used the snaps install. then followed the auto snaps ssl.  
on the router i port forward 3000 to the local ip of the RC server.

Caddy file is:

[chat.domain.com](http://chat.domain.com) {  
proxy / localhost:3000 {  
websocket  
transparent  
}  
}

---

<div class="post-metadata">

**Author:** ![macprogeek](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@macprogeek](https://forums.rocket.chat/u/macprogeek)\
**Post date:** [June 10, 2021, 2:53am UTC](https://forums.rocket.chat/t/question-on-caddy-install/11210/6 "2021-06-10T02:53:41Z")

</div>

/var/snap/rocketchat-server/current/Caddyfile is where its at

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [June 10, 2021, 8:37am UTC](https://forums.rocket.chat/t/question-on-caddy-install/11210/7 "2021-06-10T08:37:17Z")

</div>

> [@macprogeek](#):
>
> on the router i port forward 3000 to the local ip of the RC server.

Don’t - that is what caddy is doing, or meant to be doing.

Just allow https:443 to the server, and let caddy reverse proxy it to 3000

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [June 10, 2021, 8:37am UTC](https://forums.rocket.chat/t/question-on-caddy-install/11210/8 "2021-06-10T08:37:45Z")

</div>

> [@macprogeek](#):
>
> /var/snap/rocketchat-server/current/Caddyfile is where its at

What do you actually want to know?

---

<div class="post-metadata">

**Author:** ![macprogeek](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@macprogeek](https://forums.rocket.chat/u/macprogeek)\
**Post date:** [June 10, 2021, 3:36pm UTC](https://forums.rocket.chat/t/question-on-caddy-install/11210/10 "2021-06-10T15:36:48Z")

</div>

> [@john.crisp](#):
>
> > [@macprogeek](#):
> >
> > /var/snap/rocketchat-server/current/Caddyfile is where its at
> 
> What do you actually want to know?

Sorry that was my reply to kdmiller looking where the caddy text file was

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [June 11, 2021, 8:20am UTC](https://forums.rocket.chat/t/question-on-caddy-install/11210/11 "2021-06-11T08:20:34Z")

</div>

> [@macprogeek](#):
>
> Sorry that was my reply to kdmiller looking where the caddy text file was

OK, thanks!! 🙂
