Ok so i have xampp runing and its wonderful , i have setup the vhost directive, this is how it looks like:
<VirtualHost *:80>
ServerAdmin localhost@localhost.com
DocumentRoot /opt/lampp/htdocs
ServerName localhost
ServerAlias localhost
ErrorLog logs/localhost-error_log
CustomLog logs/localhost-access_log common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin website@website.com
DocumentRoot /opt/lampp/htdocs/website1.com
ServerName http://website1.com
ServerAlias website1.com
</VirtualHost>
<VirtualHost *:80>
ServerAdmin website2@website2.com
DocumentRoot /opt/lampp/htdocs/website2
ServerName http://website2.com
ServerAlias http://www.website2.com
</VirtualHost>
now the issue is that if you type the IP adress it goes to xampp directory, it wont work cuz the security placed in xampp is good, but then if you type http://www.website2.com it goes to xampp index. i have setup the dns adress fine,
I have yahoo dns servive and this is how it looks like:
A Record *.website2.com ip Edit | Delete
A Record website2.com ip ip Edit | Delete
A Record www.website2.com ip
what i am missing that www.website2.com or http://www.website2.com goes to xampp ,
should i make another <virtualhost>
with server name www.website2.com
</virtualhost>
or whats wrong, also i have the virtual host becouse if i dont do so, i cant access the xamp server at my private IP...
thanks for the help hope you know what i am talking about..