I have one apache server with one SSL-certificate installed, and I set up these virtualhosts in the httpd.conf
<VirtualHost *:80> ServerName subdomanin.DOMAIN_A.com DocumentRoot "/var/www/html/XXXXXXXXXXXXXXXXXXXXXXXX" </VirtualHost> <VirtualHost *:443> ServerName DOMAIN_A.com DocumentRoot "/var/www/html/XXXXXXXXXXXXXXXXXXXXXXXX" SSLEngine on SSLCertificateKeyFile XXXXXXXXXXXXXXXXXXXXXXXX SSLCertificateFile XXXXXXXXXXXXXXXXXXXXXXXX SSLCertificateChainFile XXXXXXXXXXXXXXXXXXXXXXXX </VirtualHost> Everytime I try to reach http://subdomain.DOMAIN_A.com with my browser, it redirects me to port 443, with https before the address. The certificate doesn't work with the subdomain and I receive an error.
I don't understand how to access the subdomain on port 80 by default and not be redirected on port 443.