Resolved Can't access localhost

Discussion in 'Mac OS X Lion (10.7)' started by bakura, May 18, 2012.

  1. bakura, May 18, 2012
    Last edited: May 18, 2012

    macrumors member

    Joined:
    Jan 30, 2011
    #1
    Hi,

    Since a few days (I think it's because of 10.7.4 as it worked perfectly well before), I can't access to my localhost websites on both my MacBook Air and iMac, even though I didn't modify any Apache files.

    Going to localhost on Safari (or Firefox or Opera) automatically redirects me to www.localhost (and of course it doesn't find it). Writing 127.0.0.1, it also prepends it by www.

    I realized that the Apache error log is not empty :

    But I don't know how to resolve this problem. This is kinda annoying as I can't test my website anymore !

    Thanks :).

    EDIT : it was my mistake. Stupid mistake. I didn't realized that my production .htaccess was active, and it contains Apache code to automatically append www before any URLs... So much lost time...
     

Share This Page