Replies: 1 comment
-
Hi @faruzanCN! I'm Dosu and I’m helping the dify team. To run Dify under a path prefix like Here’s what you need to do:
Important: If you follow these steps, all frontend requests will use the path prefix, and your deployment should work behind a shared port with Nginx path-based routing. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
I deployed Dify using the official Docker image and attempted to modify all API addresses in the .env file by adding the prefix "/dify", but it didn't work. First, the frontend pages did not include the "/dify" prefix in their URLs. Second, although API requests did include the "/dify" prefix, they returned 404 errors. Why is there such a requirement? This is because certain network environments do not allow arbitrary ports to be opened. Therefore, sharing the same port with other systems via path-based routing in an Nginx reverse proxy becomes necessary. This approach also enables leveraging existing application authentication mechanisms, thereby enhancing security management.
2. Additional context or comments
and if i edit "dify/docker/nginx/conf.d/default.conf", the weibsit "http://127.0.0.1/dify" will 404
Beta Was this translation helpful? Give feedback.
All reactions