Ok i have been working all day trying to get virtual hosting all setup. Read threw forum posts and google
just to explain what i am trying to accomplish with vhosts
in listen.conf i uncommented
NameVirtualHost *:80
in /etc/apache2/vhosts.d i have made 2 conf files
xxxxx.conf
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /home/xxxxx/public_html
ServerName xxxxx.com
ServerAlias xxxxx.com *.xxxxx.com
</VirtualHost>
yyyyy.conf
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /home/yyyyy/public_html
ServerName yyyyy.com
ServerAlias yyyyy.com *.yyyyy.com
</VirtualHost>
now if i go to xxxxx.com it displays the correct page
I am unable to go to yyyyy.com as DNS has not switched yet, but once dns updates i assume it will work
Problem is before i setup the vhosts i was using the default dir /srv/www/htdocs and if i went to 192.168.x.x with browser it displayed the contents of said directory
now after vhosts if i go to 192.168.x.x it shows the yyyyy.com page ???
Any idea how to fix this