【问题标题】:How do I set up a reverse proxy in ISPConfig?如何在 ISPConfig 中设置反向代理?
【发布时间】:2021-04-08 12:40:15
【问题描述】:

是否可以在 ISPConfig 中设置反向代理?

我在子域上尝试了此设置,但只收到错误 500。

/var/www/influxdb2.*******.***/log/error.log 表示以下内容:

==> error.log <==
[Fri Jan 01 21:24:15.963158 2021] [proxy:warn] [pid 30333] [client ***.***.***.***:59356] AH01144: No protocol handler was valid for the URL /favicon.ico (scheme 'http'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule., referer: https://influxdb2.*******.***/

【问题讨论】:

    标签: ispconfig ispconfig-3


    【解决方案1】:

    对我来说,proxy_http 模组不见了。

    通过sudo a2enmod proxy_http 启用它并使用systemctl restart apache2 重新启动您的apache(感谢https://serverfault.com/questions/773449/no-protocol-handler-valid-for-the-url-with-httpd-mod-proxy-balancer)。

    另请注意,“重定向类型”设置 有时似乎会在保存时将自身重置为“无”(或者至少在加载页面时不显示正确的值(从 ISPConfig 3.2.1 开始)。因此,如果某些东西不起作用,请仔细检查该设置。

    对于“域”标签,设置非常简单。只需输入您的域并可能启用 Let's Encrypt。

    请注意,这似乎使用mod_rewrite 进行代理。 Apache2 documentation on mod_rewrite 声明应该使用更好的 ProxyPassmod_proxy。因此,如果某些应用程序出现任何问题,这可能是进一步调查的起点(为我工作,用于反向代理到 http://localhost:8086 上的 InfluxDB 2.0.3 的 HTTP 端点)。

    【讨论】:

    • 欢迎其他解决方案;因此,我没有将自己的答案标记为已接受的解决方案。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-19
    • 2016-04-18
    • 1970-01-01
    • 2016-07-05
    • 1970-01-01
    相关资源
    最近更新 更多