Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm web-developer and I need local domains. Before 10.7.2 update, I'm just fix /etc/hosts as I need, but new update crash this solution. How fix this new "feature"?

share|improve this question
1  
possible duplicate of Lion "hosts" File Bug –  bmike Oct 13 '11 at 21:55
add comment

1 Answer 1

up vote 4 down vote accepted

This answer on the question Lion “hosts” File Bug is relevant here as well.

All additional entries to the HOSTS file must be above the:

fe80::1%lo0

Make sure there is at least one line break after the last entry. Like so:

127.0.0.1 LLL.localhost
127.0.0.1 LLL.localhost
#

Although you probably can't tell, there is another line following the # symbol. One more thing to mention, using Space instead of Tab between 127.0.0.1 and localhost might help too.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.