I have two virtual hosts in two separate files in my sites-available, linked to sites-enabled.
The first shows fine but the second shows the first what have I done wrong?
1)
NameVirtualHost *
ServerName pmax.selfip.com
ServerAdmin webmaster@localhost
#We want to be able to access the web site using www.pmax.selfip.com or pmax.selfip.com
ServerAlias www.pmax.selfip.com
DocumentRoot /home/james/cakeProjects/live/PMAX
Options FollowSymLinks
AllowOverride All
#Specific log file for this server
CustomLog /var/log/apache2/pmax.selfip.com-access.log combined
*****************************************************************************
2)
NameVirtualHost *
ServerName jtsql.homelinux.com
ServerAdmin webmaster@localhost
#We want to be able to access the web site using www.jtsql.homelinux.com or jtsql.homelinux.com
ServerAlias www.jtsql.homelinux.com
DocumentRoot /var/www/phpmysql
Options FollowSymLinks
AllowOverride All
#Specific log file for this server
CustomLog /var/log/apache2/jtsql.homelinux.com-access.log combined
NameVirtualHost *:0 has no VirtualHosts