ApacheリバースプロキシSSLの問題

ApacheリバースプロキシSSLの問題

私のホスト名にhttps://servername/phpmyadmin/インストールしましたphpmyadmin。 URLを変更してドメイン証明書を「採用」してから使用したいが、db.domain.tldうまく動作しません。

これは、サーバーIPのプレースホルダーであるISPConfigホスト名のProxyPass構成です。11.22.33.44

ProxyRequests off
SSLProxyEngine on
ProxyPassReverseCookiePath /phpmyadmin/ /
ProxyPassReverseCookieDomain 11.22.33.44 db.domain.tld

ProxyPass "/" https://11.22.33.44/phpmyadmin/ connectiontimeout=10000 timeout=10000
ProxyPassReverse "/" https://11.22.33.44/phpmyadmin/

エラーログに表示されるエラーは次のとおりです。

[Tue Feb 18 09:18:57.640945 2020] [proxy:error] [pid 7804:tid 139734462269184] [client IPv6-placeholder:44762] AH00898: Error during SSL Handshake with remote server returned by /
[Tue Feb 18 09:18:57.640950 2020] [proxy_http:error] [pid 7804:tid 139734462269184] [client IPv6-placeholder:44762] AH01097: pass request body failed to 11.22.33.44:443 (11.22.33.44)

私のブラウザの応答は次のとおりです。

Proxy Error
The proxy server could not handle the request

Reason: Error during SSL Handshake with remote server

ベストアンサー1

ソリューションを追加するのを忘れました。時間が経過した後です。

TimeOut 10000

SSLProxyEngine on
SSLProxyVerify none 
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off

RewriteEngine on
RewriteCond %{REQUEST_URI} ^/\.well-known/acme-challenge/
RewriteRule ^ - [END]
RewriteCond %{HTTPS} !=On [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

ProxyRequests off
ProxyPassReverseCookiePath /phpmyadmin/ /
ProxyPassReverseCookieDomain servername.host.tld db.domain.tld

ProxyPass "/" https://servername.host.tld/phpmyadmin/ connectiontimeout=10000 timeout=10000
ProxyPassReverse "/" https://servername.host.tld/phpmyadmin/

おすすめ記事