GitHub user vnk123 created a discussion: Launch Superset from existing sub
domain
I have a domain called abc.test.io
I want to launch superset through URL - abc.test.io/analytics/
I run Apache and made below changes in sites-available
<VirtualHost *:443>
ServerName abc.test.io
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/server.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key
ProxyPreserveHost On
ProxyRequests Off
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Port "443"
RequestHeader set X-Forwarded-Host "%{Host}s"
# Main Superset reverse proxy root
ProxyPass /analytics/ http://127.0.0.1:8089/
ProxyPassReverse /analytics/ http://127.0.0.1:8089/
# Rewrite backend absolute Location headers emitted as /superset/... to the
external root
Header edit Location "^/superset/(.*)" "/$1"
# WebSockets
ProxyPassMatch ^/socket.io(.*) ws://127.0.0.1:8089/socket.io$1
ErrorLog ${APACHE_LOG_DIR}/analytics-error.log
CustomLog ${APACHE_LOG_DIR}/analytics-access.log combined
</VirtualHost>
And in superset_config.py I have added below data
ENABLE_PROXY_FIX = True
BASE_URL = "/analytics"
I am using gunicorn to run
I am unable to launch the URL, once i click abc.test.io/analytics/ on the
browser it ends in abc.test.io/welcome/ page saying forbidden. Please help me
here as I am stuck and unable to proceed. I can share any additional
information if required. Please help
GitHub link: https://github.com/apache/superset/discussions/36453
----
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]