mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-02 06:46:55 -05:00
[GH-ISSUE #7377] ROOT_PATH or WEBUI_BASE_URL do not work
#14724
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 @hostingnuggets on GitHub (Nov 26, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/7377
Bug Report
Installation Method
docker run -d --network=host -v open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://127.0.0.1:11434 -e WEBUI_BASE_URL="http://localhost:8080/open-webui" --name open-webui --restart always ghcr.io/open-webui/open-webui:mainEnvironment
Confirmation:
Expected Behavior:
The web interface should be available under the URI /open-webui
Actual Behavior:
The web interface is NOT available under the URI /open-webui
Description
Bug Summary:
Specify a specific URI using
ROOT_PATHorWEBUI_BASE_URLenvironment variables do not work.Reproduction Details
Steps to Reproduce:
Simply install the latest version of the container using the command above.
Logs and Screenshots
Browser Console Logs:
not relevant
Docker Container Logs:
not relevant
Screenshots/Screen Recordings (if applicable):
not relevant
Additional Information
I am available for any further questions or testing.
@hostingnuggets commented on GitHub (Nov 26, 2024):
@tjbck I don't understand why you closed this issue as not planned? I reported that these variable environments are not working, shouldn't they be working?
@tjbck commented on GitHub (Nov 26, 2024):
There's no such thing as
ROOT_PATH,WEBUI_BASE_URL.@hostingnuggets commented on GitHub (Nov 27, 2024):
What about: https://github.com/search?q=repo%3Aopen-webui%2Fopen-webui%20WEBUI_BASE_URL&type=code
@alkaris2 commented on GitHub (Nov 27, 2024):
If it's on the same machine and network you're running it on, you only need to do
which you already have at the beginning of your command line, so just drop the extra environment variable for;
if your open-webui is on a different machine and network you define that in your
--network=line, ie;--network=10.10.0.13:8080@hostingnuggets commented on GitHub (Nov 28, 2024):
Thank you @alkaris2 for your answer but still with your recommendations Open WebUI is not available under the
/open-webuipath.@alkaris2 commented on GitHub (Nov 28, 2024):
That's because it's a virtual mount point within Docker once it's running, it doesn't actually exist on your
/root directory mount point, only within the Docker container that you've created. You can map to a physical mount point, an example if mounting a MySQl Database to a Local Directory you would do something like this-v $(pwd)/datadir:/var/lib/mysql@hostingnuggets commented on GitHub (Nov 28, 2024):
Sorry for the confusion @alkaris2 but I am not speaking about a filesystem path but about a URL path.
@0k00l commented on GitHub (Nov 6, 2025):
Use DNS alias and make catch by host ;)