All pastes #721103 Raw Edit

Something

public text v1 · immutable
#721103 ·published 2007-09-30 23:09 UTC
rendered paste body
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 *

<VirtualHost *>
	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
        <Directory /home/james/cakeProjects/live/PMAX>
                 Options FollowSymLinks
                 AllowOverride All
        </Directory>

	
	#Specific log file for this server
	CustomLog /var/log/apache2/pmax.selfip.com-access.log combined
</VirtualHost>

*****************************************************************************

2)

NameVirtualHost *

<VirtualHost *>
	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
        <Directory /var/www/phpmysql>
                 Options FollowSymLinks
                 AllowOverride All
        </Directory>

	
	#Specific log file for this server
	CustomLog /var/log/apache2/jtsql.homelinux.com-access.log combined
</VirtualHost>

 NameVirtualHost *:0 has no VirtualHosts