Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

orbdrums

macrumors member
Original poster
Dec 13, 2008
78
0
Hello, I'm not sure if this is the correct forum for this post but I'll try.

I have a few vhost entries (name.local, name1.local, name2.local, etc.) using *:80 with DocumentRoot and ServerName defined in my httpd-vhosts.conf file. All of these entries resolve to the same .local address which is the Webserver/Documents folder.

None of the vhost entries have the default Webserver/Documents folder defined in DocumentRoot.

My question is, even though all of my virtual host names are recognized, why aren't they resolving to the appropriate folder? Any help would be greatly appreciated.

Best Regards,
Clark
 
ServerName relies on DNS. If "name.local" doesn't resolve to localhost or whatever interface your Apache server is listening on, it's not going to work.

You can try adding all your *.local hostnames to the webserver's /etc/hosts file and see if that works.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.