GitHub user dosubot[bot] added a comment to the discussion: Getting 404 error on welcome page
<!-- Greeting --> Hi @jc4250! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team. <!-- Answer --> Your 404 error is likely caused by a mismatch in Superset’s subpath configuration and proxy headers. Here’s how to fix it: 1. **Superset config:** Remove `SUPERSET_WEBSERVER_PREFIX`—it’s not supported. Instead, set these in your `superset_config.py`: ```python APPLICATION_ROOT = '/superset' STATIC_ASSETS_PREFIX = '/superset' ENABLE_PROXY_FIX = True PROXY_FIX_CONFIG = {"x_for": 1, "x_proto": 1, "x_host": 1, "x_port": 1, "x_prefix": 1} ``` Optionally, set the environment variable `SUPERSET_APP_ROOT=/superset` if you use Docker or Helm. [Reference](https://github.com/apache/superset/discussions/37376) 2. **Istio VirtualService:** Update your config to set both `X-Forwarded-Proto` and `X-Forwarded-Prefix` headers to `/superset`. The rewrite rule should strip `/superset` from the URI before forwarding to Superset, so requests like `/superset/welcome` become `/welcome` for the backend. [Reference](https://github.com/apache/superset/discussions/36453) 3. **Version check:** Subpath support is only reliable in Superset 6.0+. If you’re on an older version, upgrade to 6.0+ or switch to a subdomain setup. Earlier versions have known bugs with subpath deployments that cause 404s even with correct config. [Reference](https://github.com/apache/superset/issues/34896) 4. **Troubleshooting:** - Make sure all configs and headers use `/superset` (no typos, no trailing slash). - Check Superset logs for errors when accessing `/superset/welcome`. - Clear your browser cache after config changes. Let me know your Superset version and if you see any errors in the logs—this will help pinpoint if it’s a config or version issue. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/d622832b-49dc-4ab4-b8fd-3b9d76096d32?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/d622832b-49dc-4ab4-b8fd-3b9d76096d32?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/d622832b-49dc-4ab4-b8fd-3b9d76096d32?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/d622832b-49dc-4ab4-b8fd-3b9d76096d32?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/d622832b-49dc-4ab4-b8fd-3b9d76096d32?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/d622832b-49dc-4ab4-b8fd-3b9d76096d32?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/d622832b-49dc-4ab4-b8fd-3b9d76096d32?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github) [](https://cursor.com/link/prompt?text=Your%20404%20error%20is%20likely%20caused%20by%20a%20mismatch%20in%20Superset%E2%80%99s%20subpath%20configuration%20and%20proxy%20headers.%20Here%E2%80%99s%20how%20to%20fix%20it%3A%0A%0A1.%20%2A%2ASuperset%20config%3A%2A%2A%20%20%0A%20%20%20Remove%20%60SUPERSET_WEBSERVER_PREFIX%60%E2%80%94it%E2%80%99s%20not%20supported.%20Instead%2C%20set%20these%20in%20your%20%60superset_config.py%60%3A%0A%20%20%20%60%60%60python%0A%20%20%20APPLICATION_ROOT%20%3D%20%27/superset%27%0A%20%20%20STATIC_ASSETS_PREFIX%20%3D%20%27/superset%27%0A%20%20%20ENABLE_PROXY_FIX%20%3D%20True%0A%20%20%20PROXY_FIX_CONFIG%20%3D%20%7B%22x_for%22%3A%201%2C%20%22x_proto%22%3A%201%2C%20%22x_host%22%3A%201%2C%20%22x_port%22%3A%201%2C%20%22x_prefix%22%3A%201%7D%0A%20%20%20%60%60%60%0A%20%20% 20Optionally%2C%20set%20the%20environment%20variable%20%60SUPERSET_APP_ROOT%3D/superset%60%20if%20you%20use%20Docker%20or%20Helm.%20%20%0A%20%20%20%5BReference%5D%28https%3A//github.com/apache/superset/discussions/37376%29%0A%0A2.%20%2A%2AIstio%20VirtualService%3A%2A%2A%20%20%0A%20%20%20Update%20your%20config%20to%20set%20both%20%60X-Forwarded-Proto%60%20and%20%60X-Forwarded-Prefix%60%20headers%20to%20%60/superset%60.%20The%20rewrite%20rule%20should%20strip%20%60/superset%60%20from%20the%20URI%20before%20forwarding%20to%20Superset%2C%20so%20requests%20like%20%60/superset/welcome%60%20become%20%60/welcome%60%20for%20the%20backend.%20%20%0A%20%20%20%5BReference%5D%28https%3A//github.com/apache/superset/discussions/36453%29%0A%0A3.%20%2A%2AVersion%20check%3A%2A%2A%20%20%0A%20%20%20Subpath%20support%20is%20only%20reliable%20in%20Superset%206.0%2B.%20If%20you%E2%80%99re%20on%20an%20older%20version%2C%20upgrade%20to%206.0%2B%20or%20switch%20to%20a%20subdomain%20setup.%20Earlier%20versions %20have%20known%20bugs%20with%20subpath%20deployments%20that%20cause%20404s%20even%20with%20correct%20config.%20%20%0A%20%20%20%5BReference%5D%28https%3A//github.com/apache/superset/issues/34896%29%0A%0A4.%20%2A%2ATroubleshooting%3A%2A%2A%20%20%0A%20%20%20-%20Make%20sure%20all%20configs%20and%20headers%20use%20%60/superset%60%20%28no%20typos%2C%20no%20trailing%20slash%29.%0A%20%20%20-%20Check%20Superset%20logs%20for%20errors%20when%20accessing%20%60/superset/welcome%60.%0A%20%20%20-%20Clear%20your%20browser%20cache%20after%20config%20changes.%0A%0ALet%20me%20know%20your%20Superset%20version%20and%20if%20you%20see%20any%20errors%20in%20the%20logs%E2%80%94this%20will%20help%20pinpoint%20if%20it%E2%80%99s%20a%20config%20or%20version%20issue.) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai %20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/37655) GitHub link: https://github.com/apache/superset/discussions/37655#discussioncomment-15690573 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
