1

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

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

When I try to access for example http://project.local.<my local ip>.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?

3
  • On OSX .local is used by Bonjour for local discovery of ips by name without using DNS (see RFC 6762
    – mmmmmm
    Commented Apr 15, 2013 at 10:07
  • Have you edited the hosts file?
    – jackJoe
    Commented Apr 15, 2013 at 15:18
  • yes, my Hosts file is edited
    – John
    Commented Apr 16, 2013 at 5:30

1 Answer 1

1

I use MAMP Pro and the file httpd-vhosts.conf does not contain this setting, but in the app I have this:

ServerAlias example.*xip.io

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .