I'm trying to host 2 sites on 1 box. I only have 1 IP.
I've un#ed the following line in httpd.conf
- Code: Select all
Include etc/extra/httpd-vhosts.conf
And my httpd-vhosts.conf looks like this:
- Code: Select all
<VirtualHost *:80>
ServerName wownerdz.com
DocumentRoot /opt/lampp/htdocs/nerdz
</VirtualHost>
<VirtualHost *:80>
ServerName kdscrapbooking.com
DocumentRoot /opt/lampp/htdocs/kdscrap
</VirtualHost>
However when I go to one(doesn't matter which) it simply defaults to the first domain(wownerdz.com).
I've switched the placement of the 2 and when I do it defaults to the other(kdscrapbooking.com).
I can't ever get both to work, just one or the other depending on which is first in the httpd-vhosts.conf file.