# Add additional links and ports to caddy

**URL:** <https://discuss.openedx.org/t/add-additional-links-and-ports-to-caddy/11617>\
**Category:** Site Operators\
**Tags:** api, how-to\
**Created:** [November 7, 2023, 8:46am UTC](https://discuss.openedx.org/t/add-additional-links-and-ports-to-caddy/11617 "2023-11-07T08:46:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![blazejwiecha](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/blazejwiecha/32/6085_2.png) [@blazejwiecha](https://discuss.openedx.org/u/blazejwiecha)\
**Post date:** [November 7, 2023, 8:46am UTC](https://discuss.openedx.org/t/add-additional-links-and-ports-to-caddy/11617/1 "2023-11-07T08:46:25Z")

</div>

Hey , I am trying to add some custom links to our caddy file uses by Tutor app

I have some additional subfolders  
/cudserver  
/restapi  
/cud-math  
/cud-code

So I want to be added to caddyfile

mysite.local {  
reverse\_proxy /api localhost:5000  
reverse\_proxy /admin localhost:6000  
reverse\_proxy /graphql localhost:7000  
reverse\_proxy localhost:4000  
tls mysite.loc.pem mysite.loc-key.pem  
}

I was trying to add on the end of caddyfile something like this but all crashed. Any hints how to add them to Caddy ?

---

<div class="post-metadata">

**Author:** ![joel.edwards](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/joel.edwards/32/3193_2.png) [@joel.edwards](https://discuss.openedx.org/u/joel.edwards)\
**Post date:** [November 7, 2023, 4:25pm UTC](https://discuss.openedx.org/t/add-additional-links-and-ports-to-caddy/11617/2 "2023-11-07T16:25:55Z")

</div>

You should probably do `tutor local logs --follow caddy` to see what error is being returned. it might be that some syntax is broken or your certs are not stored relative and so not found, as an example of common issues

Check here for some examples

> **[Common Caddyfile Patterns - Caddy Documentation](https://caddyserver.com/docs/caddyfile/patterns#single-page-apps-spas)**
>
> Caddy is a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go

---

<div class="post-metadata">

**Author:** ![blazejwiecha](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/blazejwiecha/32/6085_2.png) [@blazejwiecha](https://discuss.openedx.org/u/blazejwiecha)\
**Post date:** [November 8, 2023, 7:33am UTC](https://discuss.openedx.org/t/add-additional-links-and-ports-to-caddy/11617/3 "2023-11-08T07:33:57Z")

</div>

thanks for hints . looking for that log to check.
