Apache VirtualDocumentRoot, MAMP, .local domain & xip.io? I have a problem making xip.io works. I have set up my machine to use virtualhosts with MAMP .local domain name.

this is my httpd-vhosts.conf file:

NameVirtualHost *:80
UseCanonicalName Off

&lt;VirtualHost *:80&gt;
    VirtualDocumentRoot /Users/&lt;myusername&gt;/Sites/%-1/%-2+/build
    &lt;Directory "/Users/&lt;myusername&gt;/Sites"&gt;
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    &lt;/Directory&gt;
&lt;/VirtualHost&gt;


When I try to access for example http://project.local.&lt;my local ip&gt;.xip.io it doesn't work while http://project.local works. How can I fix this?

Also, I have read that the .local domain on Mac can cause some problems, is this true?
I use MAMP Pro and the file httpd-vhosts.conf does not contain this setting, but in the app I have this:



The host is http://plugins.dev and if my memory serves me well, it's all that's needed to have it working.