Hi, I tried setting PHOENIX_HOST_ROOT_PATH to serve the app from /arize-phoenix but I’m getting errors in retrieving the application static assets (they’re still retrieved from the root):
GET https://domain.com/modernizr.js net::ERR_ABORTED 404 (Not Found)
arize-phoenix/:48
GET https://domain.com/assets/vendor-arizeai-Sj74jm5V.js net::ERR_ABORTED 404 (Not Found)
Is there no support for serving the app from a nested path?
The PHOENIX_HOST_ROOT_PATH environment variable is designed to work in conjunction with a reverse proxy, not directly from the application itself. This means that setting this variable alone will not change the root path for static assets. You need to configure a reverse proxy to handle the path prefix correctly.According to this GitHub issue and this Slack conversation, the PHOENIX_HOST_ROOT_PATH setting will only work when used with a reverse proxy setup. You can find an example of how to set up a reverse proxy with Phoenix here.Would you like more details on setting up a reverse proxy for this purpose?Sources:
- this GitHub issue
- this Slack conversation
💡 Hint: Mention RunLLM in the thread for followups.
This helped thanks. I had configured the root path incorrectly
