mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[GH-ISSUE #16836] issue: OpenWebUI does not load assets when working in a subdirectory #18066
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @brunesIT on GitHub (Aug 22, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16836
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.25
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04
Browser (if applicable)
Edge
Confirmation
README.md.Expected Behavior
I was hoping that with docker-compose I could start openwebui on a subdomain of my main domain, but when I do so, I encounter this issue... I currently want to set up a redirect with nginx proxy manager on the main domain n8n and on the other openwebui.
Actual Behavior
The assets are not loading.
Steps to Reproduce
start the server
start the docker container with openwebui
enter the subdomain and view the screen without loading
Logs & Screenshots
Additional Information
THE DOCKER COMPOSE YML
services:
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
ports:
- "8080:8080"
environment:
- OPENAI_API_KEY=sk-xxx
- OPENAI_API_BASE_URL=https://api.deepseek.com/v1
- MODEL_NAME=deepseek-chat
- DEFAULT_MODELS=deepseek-chat
- ENABLE_SIGNUP=true
- WEBUI_AUTH=true
- ENABLE_COMMUNITY_SHARING=false
- ENABLE_MODEL_FILTER=true
- PUBLIC_URL=https://domain.example.com/openwebui
- OAUTH_PROVIDER=oidc
- OAUTH_CLIENT_ID=xxxx.x.x.x.xxxx...
- OAUTH_CLIENT_SECRET=x.x.x.x.xx.x.xxx
- OAUTH_ISSUER=5c8fcb0c-x.x.x.xx.xx.xx.x
- OAUTH_REDIRECT_URI=https://domain.example.com/openwebui/oauth/callback
- OAUTH_SCOPE=openid profile email
- BASE_URL=/openwebui
volumes:
- open-webui:/app/backend/data
restart: unless-stopped
volumes:
open-webui:
ITS MY FIRST TIME AT GITHUB SO I DON'T KNOW HOW TO USE IT IF IM I WRONG OR SOMETHING SORRY
@brunesIT commented on GitHub (Aug 22, 2025):
the proxy configuration for openwebUI
@rgaricano commented on GitHub (Aug 22, 2025):
That's not a subdomain, it's a subdirectory.
And yes, it doesn't work properly with the subdirectory, it's an intentional behavior.
Just set it as a subdomain, e.g. openwebui.example.com
@brunesIT commented on GitHub (Aug 22, 2025):
@rgaricano So I need to buy a new domain? Im on Azure
@rgaricano commented on GitHub (Aug 22, 2025):
usually you can add subdomains as option in this kind of services, search in azure for info.
@Tom60chat commented on GitHub (Feb 14, 2026):
Sad not everyone have a domain that have control on it (often free one, mine it's given by my isp), and so can't create subdomains...
If you don't want to implement it, at least put the label 'wontfix'