mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[GH-ISSUE #14939] issue: WEBUI_URL do not apply to statics & frontend assets #32941
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 @Mcthomas777 on GitHub (Jun 12, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14939
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
latest master
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04
Browser (if applicable)
Chrome
Confirmation
README.md.Expected Behavior
When setting WEBUI_URL to "/desired-name", I want to be able to to load the application over my browser.
Actual Behavior
I can access my openwebui instance through https://domain.name/$(WEBUI_URL), but then None of static/, /_app/, manifest.json, /asset/... etc can be served properly, because it does not include $(WEBUI_URL)... I checked in vit.config.js, and svelte.config.js, and there is not such a thing that trigger WEBUI_URL (I'm not that much into .js/svelte/vite...)
Here was my nginx.conf:
location /$(WEBUI_URL){
proxy_pass http://domain.name:3000/;
# I tried different config, seeting the prefix in the header, without adding it, proxy passing to IP/DNS/ with and without /$(WEBUI_URL).
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;
proxy_buffering off;
}
Steps to Reproduce
Logs & Screenshots
BROWSER LOGS:
GET https://dns/_app/immutable/chunks/C1FmrZbK.js net::ERR_ABORTED 404 (Not Found)
GET https://dns/static/favicon.ico 404 (Not Found)
favicon.svg:1
GET https://dns/static/favicon.svg 404 (Not Found)
favicon.png:1
GET https://dns/static/favicon.png 404 (Not Found)
Additional Information
No response
@tjbck commented on GitHub (Jun 12, 2025):
Only root-level url deployments are officially supported.