【问题标题】:Configure Apache Webserver to run Apache Superset配置 Apache Webserver 以运行 Apache Superset
【发布时间】:2021-09-15 22:56:24
【问题描述】:

默认情况下 apache 超集使用内部 webserver 。虽然安装手册说我们可以配置 apache 或 nginx ,但我不知道该怎么做。 有人可以告诉我如何配置 apache webserver 来运行 superset 吗?

【问题讨论】:

    标签: apache-superset


    【解决方案1】:

    使用gunicorn启动超集webapp,然后使用apache或nginx作为代理转发http请求给它

    /gunicorn -w 4 -k gevent --timeout 120 -b 127.0.0.1:6666 --limit-request-line 0 --limit-request-field_size 0 superset:app
    

    nginx 配置为:

     location / {
        proxy_pass http://127.0.0.1:6666;
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $host;
    }
    

    【讨论】:

    • 是的,但一直希望在 apache 本身内部运行,但无论如何发现它需要 WSGI 接口来运行任何基于 python/flask 的应用程序
    • @sashank 你介意分享你做了什么作为答案,我正在努力解决类似的问题
    • 如何使用 mod_wsgi 在 apache 网络服务器上部署超集?
    猜你喜欢
    • 2021-01-03
    • 2012-05-05
    • 2020-02-04
    • 1970-01-01
    • 2018-06-19
    • 2020-01-29
    • 1970-01-01
    • 2020-03-30
    • 1970-01-01
    相关资源
    最近更新 更多