[英]How do I set up a reverse proxy in ISPConfig?
是否可以在 ISPConfig 中設置反向代理?
/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.*******.***/
對我來說, proxy_http
mod 不見了。
Enable it via sudo a2enmod proxy_http
and restart your apache with systemctl restart apache2
(thanks to https://serverfault.com/questions/773449/no-protocol-handler-valid-for-the-url-with-httpd-mod-proxy -平衡器)。
還要注意“重定向類型”設置 有時似乎在保存時將自身重置為“無”(或者至少從 ISPConfig 3.2.1 開始在加載頁面時不顯示正確的值)。 因此,如果某些東西不起作用,請仔細檢查該設置。
對於“域”選項卡,設置非常簡單。 只需輸入您的域並可能啟用 Let's Encrypt。
請注意,這似乎使用mod_rewrite
進行代理。 關於 mod_rewrite 的 Apache2 文檔指出應該使用更好的mod_proxy
ProxyPass
。 因此,如果某些應用程序出現任何問題,這可能是進一步調查的起點(為我工作,用於反向代理到 http://localhost:8086 的 InfluxDB 2.0.3 的 HTTP 端點)。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.