I have 1 nonSSL server and many SSL with Proxy in Apache.
Configuration SSL server:
<VirtualHost *:443>
ServerName test.com
ServerAdmin [email protected]
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/...
SSLCertificateKeyFile /etc/...
SSLCertificateChainFile /etc/...
ProxyRequests off
SSLProxyEngine on
ProxyPass / https://localhost:10000/
ProxyPassReverse / https://localhost:10000/
</VirtualHost>
<VirtualHost *:80>
ServerName test.com
ServerAdmin [email protected]
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine On
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ https://%{SERVER_NAME}$1 [R=301,L]
</VirtualHost>
Configuration nonSSL server:
<VirtualHost *:80>
ServerName test.test.com
ServerAdmin [email protected]
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ProxyRequests off
ProxyPass / http://localhost:8101/
ProxyPassReverse / http://localhost:8101/
</VirtualHost>
When I follow to SSL Server - all ok. When I follow nonSSL server Chrome show me SSL server.
What would be problem?
http://test.test.com
- all ok, to open nonSSL site. But when I dohttps://test.test.com
I seetest.com
, buthttps://test.test.com
don't have SSL. Why? It's a magic. I don't understand anything.