Apache ignoring documentroot with multiple SSL domains, not working
I am pulling my hair out here.
I have Apache running with two different domains running SSL using SNI.
The config is below. If I connect to console.somedomain.com it puts users in /var/www/html/ rather than /var/www/html/somedomain/Admin/adminv4/
However, If I connect to support1.somedomain.com , it works fine and are in the correct directory.
What one earth could be wrong here? The directory is valid.
<VirtualHost *:443> DocumentRoot "/var/www/html/somedomain/Admin/adminv4/" ServerName console.somedomain.com SSLEngine On SSLProtocol all -SSLv2 SSLCertificateFile /etc/httpd/ssl/console.somedomain.com/console.somedomain.com.crt SSLCertificateKeyFile /etc/httpd/ssl/console.somedomain.com/console.somedomain.com.key <Directory "/var/www/html/somedomain/Admin/adminv4/"> allow from all Options +Indexes </Directory> </VirtualHost> # # #NameVirtualHost support1.somedomain.com:443 <VirtualHost *:443> DocumentRoot "/var/www/html/somedomain/" ServerName support1.somedomain.com SSLEngine on SSLProtocol all -SSLv2 SSLCertificateFile /etc/httpd/ssl/support1_somedomain_com/support1.somedomain.com.crt SSLCertificateKeyFile /etc/httpd/ssl/support1_somedomain_com/support1.somedomain.com.key SSLCertificateChainFile /etc/httpd/ssl/support1_somedomain_com/latest.ca-bundle <Directory "/var/www/html/somedomain/"> allow from all Options +Indexes </Directory> </VirtualHost>
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.