I have a question about virtual hosting with Apache/FreeBSD. My site has a single IP, and I'd like to host two separate websites on this IP. Here's the relevant section in httpd.conf:
Whichever one is listed first is served, no matter which URL is entered. Is a local nameserver required for this to work?
Code:
<VirtualHost *:80>
ServerName http://www.planetfox.net
ServerAlias planetfox.net
DocumentRoot "/usr/home/webmaster/planetfox"
</VirtualHost>
<VirtualHost *:80>
ServerName http://www.revenstar.net
ServerAlias revenstar.net
DocumentRoot "/usr/home/webmaster/revenstar"
</VirtualHost>