# Docmost pathprefix

**URL:** https://community.traefik.io/t/docmost-pathprefix/27164
**Category:** Traefik v3 (latest)
**Tags:** docker
**Created:** [April 11, 2025, 12:18pm UTC](https://community.traefik.io/t/docmost-pathprefix/27164 "2025-04-11T12:18:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![vgermain](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/vgermain/32/10268_2.png) [@vgermain](https://community.traefik.io/u/vgermain)
#### Post date: [April 11, 2025, 12:18pm UTC](https://community.traefik.io/t/docmost-pathprefix/27164/1 "2025-04-11T12:18:38Z")

</div>

Anybody was able to make traefik works with docmost using pathprefix ?  
to be clear traefik with docmost is working with sub-domains but since i am using tailscale to access my traefik reverse-proxy i don't have access to sub-domains (i think) . so everything is working with tailscale even https, but using pathprefix and stripprefix it is not working with docmost.  
the problem is probably on docmost side but just wondering if somebody experienced this problem

---

<div class="post-metadata">

### Author: ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)
#### Post date: [April 11, 2025, 1:55pm UTC](https://community.traefik.io/t/docmost-pathprefix/27164/2 "2025-04-11T13:55:59Z")

</div>

Usually GUI web apps don’t like to be placed on a path, they expect to be root. It only works when some kind of "base path" can be set within the application.

The reason is that html pages include links and load further dependencies. Those are usually with absolute paths. The initial page will load with `/docmost` using `PathPrefix()` and `stripPrefix`, but included `/static/script.js` request will not be matched by router rule and never reach the correct target service.

So this is a specific application question, you probably find an answer easier in a dedicated application forum.

---

<div class="post-metadata">

### Author: ![vgermain](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/vgermain/32/10268_2.png) [@vgermain](https://community.traefik.io/u/vgermain)
#### Post date: [April 11, 2025, 2:45pm UTC](https://community.traefik.io/t/docmost-pathprefix/27164/3 "2025-04-11T14:45:45Z")

</div>

Thank you ! i appreciate.  
i changed my approach and use a different entrypoint with a specific port for my docmost service and it is working
