Name based Virtual hosting Problem

blure007

Member
Jan 9, 2003
192
1
76
Well I started by editing the httpf.conf file with the following

NameVirtualHost *
<VirtualHost *:80>
ServerName kerngaming.com
DocumentRoot /home/kerngaming
</VirtualHost>
<VirtualHost *:80>
ServerName kerngamers.com
DocumentRoot /home/kerngamers
</VirtualHost>

but both domains would point to the the kerngaming.com

So I installed the Virtualmin addon to Webmin and setup both in there as in the following

<VirtualHost 192.168.1.103:80>
SuexecUserGroup "#502" "#502"
ServerName kerngamers.com
ServerAlias www.kerngamers.com
DocumentRoot /home/kerngamers/public_html
ErrorLog /home/kerngamers/logs/error_log
CustomLog /home/kerngamers/logs/access_log common
ScriptAlias /cgi-bin/ /home/kerngamers/cgi-bin/
<Directory /home/kerngamers/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks
</Directory>
</VirtualHost>

<VirtualHost 192.168.1.103:80>
SuexecUserGroup "#503" "#503"
ServerName kerngaming.com
ServerAlias www.kerngaming.com
DocumentRoot /home/kerngaming/public_html
ErrorLog /home/kerngaming/logs/error_log
CustomLog /home/kerngaming/logs/access_log common
ScriptAlias /cgi-bin/ /home/kerngaming/cgi-bin/
<Directory /home/kerngaming/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks
</Directory>
</VirtualHost>

and they still point to the same page, any idea what i am doing wrong?

Thanks