dosubot[bot] commented on issue #33226:
URL: https://github.com/apache/superset/issues/33226#issuecomment-2826782264

   <!-- Greeting -->
   Hello @wqbbs911! I'm [Dosu](https://dosu.dev), here to assist you with bugs, 
questions, and contributions while you wait for a human maintainer. Let's 
tackle this issue together! 🚀
   
   <!-- Answer -->
   I found a similar open issue that might help you resolve the "404 Not Found" 
error when deploying Superset under a URL prefix. Here are some steps you can 
follow to ensure your configuration works correctly:
   
   1. **Superset Configuration**: Ensure that your `superset_config.py` file 
includes the following settings:
      ```python
      ENABLE_PROXY_FIX = True
      STATIC_ASSETS_PREFIX = "/analytics"
      APPLICATION_ROOT = "/analytics"
      ```
   
   2. **Nginx Configuration**: Your nginx configuration should correctly handle 
the `/analytics` sub_path. Make sure the trailing slashes are correctly placed:
      ```nginx
      location /analytics/ {
          proxy_pass         http://x.x.x.x:8088/analytics/;
          proxy_set_header   X-Forwarded-Prefix /analytics/;
      }
      ```
   
   3. **Kubernetes Deployment**: Set the `SUPERSET_APP_ROOT` environment 
variable in your Kubernetes deployment configuration:
      ```yaml
      env:
        SUPERSET_APP_ROOT: "/analytics"
      ```
   
   These configurations should help in deploying Superset under the 
`/analytics` sub_path successfully and avoid the "404 Not Found" error 
<sup>[[1]](https://github.com/apache/superset/issues/26319)</sup>.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   
   ---
   <sup>Help Dosu learn! Give it feedback: [Great 
Response](https://app.dosu.dev/response-feedback/64a645d7-ff5f-4f4f-8355-cf63feef55a0?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/64a645d7-ff5f-4f4f-8355-cf63feef55a0?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/64a645d7-ff5f-4f4f-8355-cf63feef55a0?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/64a645d7-ff5f-4f4f-8355-cf63feef55a0?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/64a645d7-ff5f-4f4f-8355-cf63feef55a0?feedback_type=hallucination)
 | [Bug 
Report](https://app.dosu.dev/response-feedback/64a645d7-ff5f-4f4f-8355-cf63feef55a0?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/64a645d7-ff5f-4f4f-8355-cf63feef55a0?feedback_type=other)</sup>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to