Please tell me how to properly configure vhosts apache . There are three sites in /etc/apache2/sites-enabled/sites
All three are working properly.
When one of them bought an SSL certificate and connected it using a redirect from port 80 to port 443, problems started, namely: Suppose sites: http://site1.com http://site2.com https://site3.com If you enter https://site1.com pens, then the browser reports a non-secure connection and goes to site3.com, but https://site1.com remains in the address bar ....
Redirect code from port 803 to 443
RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}