In my case, all domains redirect to memberspage.com when I enter domain names in the browser.
In httpd.conf i use:
Listen 80
Listen 81
In httpd-vhosts.conf:
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName memberspage.com
ServerAlias www.memberspage.com
DocumentRoot "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/memberspage.com/"
<Directory "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/memberspage.com/">
Options Indexes FollowSymLinks
AllowOverride All
#Require all granted
</Directory>
<IfModule mod_dir.c>
DirectoryIndex index.php index.pl index.cgi index.html index.xhtml index.htm
</IfModule>
</VirtualHost>
<VirtualHost *:81>
ServerAdmin [email protected]
ServerName mysite2.com
ServerAlias mysite2.com
DocumentRoot "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/mysite2.com/"
<Directory "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/mysite2.com/">
Options Indexes FollowSymLinks
AllowOverride All
#Require all granted
</Directory>
<IfModule mod_dir.c>
DirectoryIndex index.php index.pl index.cgi index.html index.xhtml index.htm
</IfModule>
</VirtualHost>
And in hosts:
127.0.0.1 memberspage.com
127.0.0.1 mysite2.com