大网数据广告活动
服务器运维问答

Local Apache TLS Proxy error on Reverse Proxy for local services

· 52CE 我爱测

I'm struggle now for a longer time with the following issue: [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 I tried a lot to fix thi…

问题原文

原帖链接 · Johnnii360 · CC BY-SA 4.0

I'm struggle now for a longer time with the following issue:

[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

I tried a lot to fix this but nothing helped. In this case I host Piped by myself and did a Let's Encrypt Certificate.

Here's the Apache Site Config of this service:

<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>

I did already:

  • Set SSLProxyEngine to Off and just used ProxyAddHeaders On and RequestHeader set X-Forwarded-Proto "https".
  • Placed Include /etc/letsencrypt/options-ssl-apache.conf above SSLProxyEngine.
  • Added an s behind http at ProxyPass and ProxyPassReverse but got after an error:
[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)

The problem is only Caddy or nginx config snippets are on https://docs.piped.video/docs/self-hosting/ and didn't found any for apache. Piped will work almost fine (can't import lists) with this error but if it's possible I will kill this error to have a proper config/log.

Any ideas?

已采纳解答

原帖链接 · Johnnii360 · CC BY-SA 4.0

Found now the solution by a tip of person that I asked.

Just disable mod_gnutls by a2dismod gnutls and renew all Let's Encrypt Certificates. And it's gone!

It's really weak for such a huge user community that no one come up with that idea to do that. Why brings to pick a specific person from a search engine result the best solutions?!

But it's honorable that at least one person tried to help me!

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2023-04-10)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。