本地服务的反向代理上的本地 Apache TLS 代理错误

问题描述 投票:0回答:0

我现在在以下问题上挣扎了更长的时间:

[gnutls:error] [pid 1878860] [remote 127.0.0.1:8282] ssl_engine_set: mod_proxy requested TLS proxy, but not enabled for piped.[CENSORED].de:443

我尝试了很多来解决这个问题,但没有任何帮助。在这种情况下,我自己托管 Piped 并做了一个 Let's Encrypt 证书。

这是此服务的 Apache 站点配置:

<IfModule mod_ssl.c>
    <VirtualHost *:443>
        ServerName piped.[CENSORED].de
        ServerAlias pipedapi.[CENSORED].de pipedproxy.[CENSORED].de
        ServerAdmin netzmeister@[CENSORED].de

        Protocols h2 h2c http/1.1

        SSLProxyEngine On
        ProxyPreserveHost On
        ProxyPass / http://127.0.0.1:8282/
        ProxyPassReverse / http://127.0.0.1:8282/
        ProxyRequests Off
        ProxyAddHeaders On
        RequestHeader set X-Forwarded-Proto "https"

        <LocationMatch "^/(/videoplayback|/api/v4/|/api/manifest/)">
            Header always set Cache-Control "private"
            Require all granted
        </LocationMatch>

        <Location "/">
            Header always set Cache-Control "public, max-age=604800"
            Require all granted
        </Location>

        Include /etc/letsencrypt/options-ssl-apache.conf
        SSLCertificateFile /etc/letsencrypt/live/pipedapi.[CENSORED].de/fullchain.pem
        SSLCertificateKeyFile /etc/letsencrypt/live/pipedapi.[CENSORED].de/privkey.pem
    </VirtualHost>
</IfModule>

我已经做了:

  • SSLProxyEngine
    设置为
    Off
    并使用
    ProxyAddHeaders On
    RequestHeader set X-Forwarded-Proto "https"
    .
  • 放在
    Include /etc/letsencrypt/options-ssl-apache.conf
    上面
    SSLProxyEngine
    .
  • ProxyPass
    ProxyPassReverse
    处在 http 后面添加了一个 s 但是在错误之后得到:
[Sun Apr 09 19:15:35.915182 2023] [gnutls:error] [pid 1881378] [remote 127.0.0.1:8282] ssl_engine_set: mod_proxy requested TLS proxy, but not enabled for piped.[CENSORED].de:443
943 [Sun Apr 09 19:15:35.915210 2023] [core:error] [pid 1881378] [remote 127.0.0.1:8282] AH01961:  failed to enable ssl support [Hint: if using mod_ssl, see SSLProxyEngine]
944 [Sun Apr 09 19:15:35.915229 2023] [proxy:error] [pid 1881378] AH00961: https: failed to enable ssl support for 127.0.0.1:8282 (127.0.0.1)

问题是只有 Caddy 或 nginx 配置片段在 https://docs.piped.video/docs/self-hosting/ 上,没有找到任何 apache。 Piped 将在出现此错误时几乎正常工作(无法导入列表),但如果可能的话,我会消除此错误以获得正确的配置/日志。

有什么想法吗?

apache ssl reverse-proxy
© www.soinside.com 2019 - 2024. All rights reserved.