strange localhost behaviour

view full story

http://serverfault.com – I'm trying to implement http digest authentication on part of a local domain. I'm using MAMP on Mac OSX Lion. MAMP uses port 8888 so I can navigate to my domain either at http://localhost:8888/myDomain or Both of these work fine for the non-authenticated sections of the domain. However, if I navigate to the address that is protected something weird happens. If I use localhost then the digest auth works absolutely fine but if I use instead then the auth keeps failing. I haven't been able to see anything relevant in my apache log file or my php log file (HowTos)