All vhost entries resolve to Webserver/Documents

Discussion in 'Mac Basics and Help' started by orbdrums, Sep 27, 2015.

  1. orbdrums macrumors member

    Dec 13, 2008
    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,
  2. ocabj macrumors 6502a


    Jul 2, 2009
    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.

Share This Page