I've tried to use NamedVirtualHosts to setup a single server to handle two websites. This is the first time I've attempted this, and I'm getting very unusual behavior. Specifically, requests to www.example2.com point o /home/stefan/example2, but http://example.com points to /home/stefan/example1.
Does anyone have any idea what's going on here?
/etc/apache2/apache2.conf
...
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /home/stefan/example1
ServerName www.example1.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /home/stefan/example2
ServerName www.example2.com
</VirtualHost>