0
我正在使用具有apache容器和燈容器的docker。燈容器包含應用程序代碼,Apache容器具有如下虛擬主機配置信息。從Docker容器返回響應時返回https url的問題
<VirtualHost *:80>
ServerName example.com
Redirect permanent/https://example.com/
</VirtualHost>
<VirtualHost *:443>
ProxyPreserveHost on
ProxyPass/http://172.18.0.25/
ProxyPassReverse/http://172.18.0.25/
SSLProxyEngine on
SSLEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
SSLProtocol All -SSLv2 -SSLv3
SSLCertificateFile /etc/ssl/certs/STAR_example_com.crt
SSLCertificateKeyFile /etc/ssl/certs/example_wildcard_private.key
SSLCertificateChainFile /etc/ssl/certs/STAR_example_com.ca-bundle
RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
</VirtualHost>
問題:當我想提出一個請求,以https://example.com然後響應apache的容器被返回從http://example.com代替https://example.com響應。
如何實現這一目標?