Hi.
Bare with me, i'm new to apache
I have two websites running on the same apache. www.domain.com and portal.domain.com
The first site (www.domain.com) will run on port 80 only and the other (portal.domain.com) will be an https web (443) only.
My problem is that i can surf to https://www.domain.com and then the https://portal.domain.com site loads.
Vice versa when i surf to http://portal.domain.com the www.domain.com site loads.
What have i missed?
httpd-vhosts.com
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "D:/xampp/htdocs/www-site"
ServerName www.domain.com
## ErrorLog @rel_logfiledir@/dummy-host2.example.com-error_log
## CustomLog @rel_logfiledir@/dummy-host2.example.com-access_log common
</VirtualHost>
httpd-ssl.conf
<VirtualHost _default_:443>
# General setup for the virtual host
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "D:/xampp/htdocs/portal-site"
ServerName portal.domain.com