Replies: 1 comment 2 replies
-
|
Hi @Monkeywj! I'm Dosu and I’m helping the dify team. To run Dify at a subpath like /dify/ (so users access it via http://ip:port/dify/), you need to do more than just change the web container URL. The frontend (Next.js) must be built with the correct base path, and both environment variables and nginx must be configured to match. Here’s what works:
This approach is confirmed by both the codebase and community solutions for subpath deployment. For more details and examples, see this issue and this one. 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
Content
How to adjust the request address of the dify community version, for example:
Change
difyip:port/
to
difyip:port/dify/,
automatically appending /dify/ at the end.
The main reason is that service A needs to be integrated with Chatflow released by dify.
However, users cannot access dify.
Therefore, I want to use the nginx proxy of service A to access dify, in order to solve the problem of the embedded service being inaccessible. Aip:port/dify
Previous attempts:
Attempting to adjust the URL of the web container as described on GitHub did not solve the problem.
Beta Was this translation helpful? Give feedback.
All reactions