I was working with localhost:81 during a long time with vhost and all was right. Right now I need to work over the 80 port and i change the http.conf and http-vhost for used the 80 port but right now into the browser localhost works ok, 127.0.0.1 and the vhost not find the server.
my configurations are: * My local machine is lion osx * mamp * HTTP.conf:
* http-vhost NameVirtualHost localhost
<VirtualHost localhost> DocumentRoot "/Users/chalien/projects/ownProjects/PHP" ServerName example.dev </VirtualHost>
127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost 127.0.0.1 example.dev
http 80/udp www www-http # World Wide Web HTTP http 80/tcp www www-http # World Wide Web HTTP