#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost *:80>
DocumentRoot C:/Apache2/htdocs
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot C:/Apache2/htdocs/me
ServerName localhost
</VirtualHost>
I've tried tons of combinations, but the actual domain (http://www.domain.com) will only go to the /htdocs/ root, and not to /htdocs/me
I've played around with lots of settings in the second virtual host container but can't seem to get it to work. It's still pointing to the document root that's in the first virual host container. Short of restarting my machine (in case the 'hosts' file needs to be recognized at startup), I'm not sure what to do.
Your host file isn't right yet (notice that space between the two.. It's possible that it works if you place the ip hostname pair on an extra line, but i haven't tried that, since this works already
Yes. That didn't work either. I just set my domain as the root. And if I need to develop additional sites, i'll just park them at mydomain.com/site_name/ for local development.