# Joplin server

**URL:** <https://discourse.joplinapp.org/t/joplin-server/42151>\
**Category:** Support\
**Created:** [23 November 2024 15:55 UTC](https://discourse.joplinapp.org/t/joplin-server/42151 "2024-11-23T15:55:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dpoulton](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/dpoulton/32/29723_2.png) [@dpoulton](https://discourse.joplinapp.org/u/dpoulton)\
**Post date:** [23 November 2024 17:53 UTC](https://discourse.joplinapp.org/t/joplin-server/42151/2 "2024-11-23T17:53:36Z")

</div>

I have seen something similar to this before when using nginx to reverse proxy to a sub-folder of a domain rather than the root of a domain or sub-domain.

If your APP\_BASE\_URL contains the sub-folder "joplin" (e.g. `APP_BASE_URL=https://example.com/joplin`) and your nginx server block defines a redirect location of `/joplin`, when nginx passes the request to the server it appends `/joplin` and so the server sees the request as `https://example.com/joplin/joplin`, hence the path not found message.

I helped someone in the past by devising a `rewrite` in the nginx server block to stop the duplication. In their case the sub-folder was named "joplinServer" not "joplin".

See this post:

> [@Joplin Server and Nginx under subresource and HTTPS](https://discourse.joplinapp.org/t/joplin-server-and-nginx-under-subresource-and-https/25934/17):
>
> I think that the problem lies with the nginx setup and not Joplin as what you are asking for is basically the Joplin Server base path environment variable. It's just that nginx adds to it. Try this: In your .env file set APP\_BASE\_URL=https://myRaspi/joplinServer as well as any other variables. or forget the .env file and just use the docker-compose file. version: '3' services: db: restart: unless-stopped image: postgres:13.1 ports: - "5432:5432" …

I am in no way an expert with regards to this. If anyone knows a better way please post here!!!

---

_[View the full topic](https://discourse.joplinapp.org/t/joplin-server/42151)._
