not find 127.0.0.1 or vhost with localhost apache in mac
Posted
by
Charly Palencia
on Super User
See other posts from Super User
or by Charly Palencia
Published on 2012-09-21T18:09:48Z
Indexed on
2012/09/22
21:40 UTC
Read the original article
Hit count: 512
i was working with localhost:81 during a long time with vhost and all was rigth. BUT, 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:
ServerName localhost:80
* http-vhost NameVirtualHost localhost
<VirtualHost localhost>
DocumentRoot "/Users/chalien/projects/ownProjects/PHP"
ServerName example.dev
</VirtualHost>
* /private/etc/hosts
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
127.0.0.1 example.dev
* /private/etc/services
http 80/udp www www-http # World Wide Web HTTP
http 80/tcp www www-http # World Wide Web HTTP
© Super User or respective owner