I have been trying to host 2 site site A and site B in apache web server the configuration are given bellow:
Site A
<VirtualHost sitea.com.au:443> ServerName "sitea.com" ServerAlias sitea.com DocumentRoot "/home/sitea.com" ....... </VirtualHost> Site B
<VirtualHost siteb.com.au:443> ServerName "siteb.com" ServerAlias siteb.com DocumentRoot "/home/siteb.com" ....... </VirtualHost> The issue I am facing is: Site A https requests are working properly, but for site B all the request are redirected to site A. When I remove the site A configuration file, site B is working properly. Individually sites are working fine, but together they are causing issue.
<VirtualHost>?*:443should it work, your current version doesn't help anything. What are doing the""-s after yourServerName? They doesn't look really okay. Try to use simplysiteb.com, instead of"siteb.com".apachectl -S? Can you see both of your vhosts in its output?