You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "dosubot[bot] (via GitHub)" <gi...@apache.org> on 2026/05/02 03:06:02 UTC
Re: [D] Launch Superset from existing sub domain [superset]
GitHub user dosubot[bot] edited a comment on the discussion: Launch Superset from existing sub domain
<!-- Greeting -->
Hi @vnk123! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team.
<!-- Answer -->
Your issue is likely due to incomplete subpath configuration and known Superset bugs with subpath deployments. Here’s what you need to do:
1. In your superset_config.py, remove BASE_URL (it’s not used for subpath deployment). Instead, set:
```python
ENABLE_PROXY_FIX = True
SUPERSET_APP_ROOT = "/analytics"
APPLICATION_ROOT = "/analytics"
STATIC_ASSETS_PREFIX = "/analytics"
```
(You can omit APPLICATION_ROOT and STATIC_ASSETS_PREFIX if you’re on a recent Superset version; they’ll be set automatically.)
2. In your Apache config, add:
```
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Prefix "/analytics"
```
Make sure you do not strip or double the /analytics prefix in ProxyPass/ProxyPassReverse.
3. When starting Superset with gunicorn, ensure the environment variable SUPERSET_APP_ROOT is set, or use the Flask entrypoint:
```
FLASK_APP="superset:create_app(superset_app_root='/analytics')"
```
4. Clear your browser cache after making these changes, as stale bootstrap data can cause broken links.
5. Be aware: subpath support in Superset is still BETA and buggy, especially in versions before 6.0.0. Some URLs (like /user_info, static assets, and WebSockets) may not work correctly under a subpath due to hardcoded paths. If you continue to see forbidden or 404 errors, check your Apache and Superset logs for missing prefix or static asset errors. If possible, consider using a subdomain (e.g., analytics.abc.test.io) instead, which is much more reliable for production use [[docs](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/docs/docs/configuration/configuring-superset.mdx)].
If you’re still stuck, please share your Superset version and the exact Gunicorn command/environment you use to launch Superset. This will help pinpoint any version-specific issues or missing config [[subpath issues](https://github.com/apache/superset/issues/35027)] [[subpath config](https://github.com/apache/superset/issues/34773)].
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fsuperset&message_id=91f94129-aec1-477b-9da9-741b522aabd0) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-add-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/36453#discussioncomment-15195328
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org