# Deployment issues when using domain.com/path

**URL:** <https://community.vikunja.io/t/deployment-issues-when-using-domain-com-path/2590>\
**Category:** Support\
**Created:** [15 July 2024 10:26 UTC](https://community.vikunja.io/t/deployment-issues-when-using-domain-com-path/2590 "2024-07-15T10:26:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![inghamio](https://community.vikunja.io/user_avatar/community.vikunja.io/inghamio/32/1164_2.png) [@inghamio](https://community.vikunja.io/u/inghamio)\
**Post date:** [15 July 2024 10:26 UTC](https://community.vikunja.io/t/deployment-issues-when-using-domain-com-path/2590/1 "2024-07-15T10:26:47Z")

</div>

Hi All,

I have been using Vikunja for a few months now and when I setup a deployment, I usually do it on just the domain or subdomain, such as [https://subdomain.example.org](https://subdomain.example.org)

My docker configuration would be like this:

```auto
version: '3'

services:
  vikunja:
    image: vikunja/vikunja
    environment:
      VIKUNJA_SERVICE_JWTSECRET: redacted
      VIKUNJA_SERVICE_PUBLICURL: https://subdomain.example.org
      VIKUNJA_DATABASE_TYPE: sqlite
      VIKUNJA_DATABASE_PATH: /db/vikunja.db
    ports:
      - 3456:3456
    volumes:
      - ./files:/app/vikunja/files
      - ./db:/db
    restart: unless-stopped

```

Nginx conf:

```auto
server {
    listen 80;
    server_name subdomain.example.org;

    location / {
        proxy_pass http://localhost:3456;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

server {
    listen 443 ssl;
    server_name subdomain.example.org;

    ssl_certificate /etc/letsencrypt/live/subdomain.example.org/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/subdomain.example.org/privkey.pem;
    ssl_protocols TLSv1.2 TLSv1.3;
    ssl_prefer_server_ciphers on;

    location / {
        proxy_pass http://localhost:3456;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

```

This works great, however I was wanting to setup a path such as: [https://example.org/mypath](https://example.org/mypath) to access vikunja.

My attempt to do this was to update `VIKUNJA_SERVICE_PUBLICURL` in the docker config and then change the `server_name` in nginx conf and update the path from `location /` to `location /mypath/`. Then restart nginx and the docker instance.

When I do this though, I get a page load on the browser but it is just a white screen. If I inspect the page is it being served by vikunja. The error logs for nginx show this:

```auto
[error] 6107#6107: *4 open() "/usr/share/nginx/html/assets/index-5J4JE1t8.css" failed (2: No such file or directory), client: <requesting ip address>, server: example.org, request: "GET /assets/index-5J4JE1t8.css HTTP/1.1", host: "example.org", referrer: "https://example.org/mypath/"

```

It appears that nginx isn’t passing through the assets location. There is a similar problem with /api (and possibly others?). I tried experimenting with the nginx config, but I ended up with all sorts of 502 and 404 errors when running vikunja, even though it initially appeared to help.

So it got me thinking. Is this domain.tld/path approach even supported? Am I missing a config in the docker yaml?

Any help would be appreciated

Thanks

---

<div class="post-metadata">

**Author:** ![kolaente](https://community.vikunja.io/user_avatar/community.vikunja.io/kolaente/32/5_2.png) [@kolaente](https://community.vikunja.io/u/kolaente)\
**Post date:** [16 July 2024 08:34 UTC](https://community.vikunja.io/t/deployment-issues-when-using-domain-com-path/2590/2 "2024-07-16T08:34:52Z")

</div>

Check out the docs about this:

> **[Running Vikunja in a subdirectory | Vikunja](https://vikunja.io/docs/running-vikunja-in-a-subdirectory)**

---

<div class="post-metadata">

**Author:** ![inghamio](https://community.vikunja.io/user_avatar/community.vikunja.io/inghamio/32/1164_2.png) [@inghamio](https://community.vikunja.io/u/inghamio)\
**Post date:** [16 July 2024 09:13 UTC](https://community.vikunja.io/t/deployment-issues-when-using-domain-com-path/2590/3 "2024-07-16T09:13:30Z")

</div>

Thanks for that. So, it is currently only supported when building from source?

---

<div class="post-metadata">

**Author:** ![kolaente](https://community.vikunja.io/user_avatar/community.vikunja.io/kolaente/32/5_2.png) [@kolaente](https://community.vikunja.io/u/kolaente)\
**Post date:** [16 July 2024 09:39 UTC](https://community.vikunja.io/t/deployment-issues-when-using-domain-com-path/2590/4 "2024-07-16T09:39:20Z")

</div>

yes, exactly. The problem here are the assets, which do not really support rewriting them based on the domain.

---

<div class="post-metadata">

**Author:** ![inghamio](https://community.vikunja.io/user_avatar/community.vikunja.io/inghamio/32/1164_2.png) [@inghamio](https://community.vikunja.io/u/inghamio)\
**Post date:** [16 July 2024 09:49 UTC](https://community.vikunja.io/t/deployment-issues-when-using-domain-com-path/2590/5 "2024-07-16T09:49:17Z")

</div>

OK got it, thanks for your help.
