我已经在我的主机名上https://servername/phpmyadmin/
安装了phpmyadmin
。我想更改 url 并“采用”域证书并在 上使用它db.domain.tld
,但我无法让它工作。
这是我的 ProxyPass 在ISPConfig
主机名中的配置,其中11.22.33.44
是服务器 IP 的占位符。
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/