mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
Get 403 Forbidden when proxy by nginx #113
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 @lingen on GitHub (Dec 22, 2023).
I just want to proxy ollama-webui by nginx.
And there is the config
Also, I started the ollama-webui in docker.
In fact, When I started ollama-webui in the 3389 port, everything was ok. But when I proxy it by nginx, there is a 403 Forbidden error.
Do anyone know what the problems are?
@oliverbob commented on GitHub (Dec 23, 2023):
Have you tried doing it with this Apache proxy example?
@lingen commented on GitHub (Dec 25, 2023):
Thank you very much. I will try it.
@lingen commented on GitHub (Dec 25, 2023):
@oliverbob
OK, I solve this problem.
The blew config of the Nginx proxy is ok.
And there two lines are very important
But I have no idea why this happened. And I thought this was not Ollama-webui's problem. Maybe it's ollama server's problem.
Because the 403 error is generated by Ollama Server but not Ollama-webui.
Thanks. I appreciate your help.