Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I installed SquidMan 3.1 on my Mac, and it works fine. But I really need it to redirect some of the traffic using my hosts file, and it seems to be ignoring it no matter where I put it.

So far I've tried:

  • Adding a hosts_file /etc/hosts directive on the configuration template via the SquidMan UI.
  • Adding the same directive on the configuration file located at /usr/local/squid/etc/squid.conf
  • Creating a copy of my hosts file in /usr/local/squid/etc/ and updating the directives to match the new location.

What am I doing wrong?

share|improve this question
add comment

1 Answer

The location on the hosts file on Mac OS X is /private/etc/hosts

http://decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/

share|improve this answer
    
Yes, /etc/ is the same as /private/etc/ –  luchomolina Apr 3 '12 at 20:37
2  
@luchomolina technically its not, /etc is just a symlink that has been hidden w/ chflags hidden –  Hawken Apr 21 '12 at 2:23
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.