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 http://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...
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 http://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 :
httpd: Could not reliably determine the server's fully qualified domain name, using iMac-de-Michael.local for ServerName
[Fri May 18 19:08:56 2012] [warn] mod_bonjour: Skipping user 'michael' - no valid index file.
[Fri May 18 19:08:56 2012] [notice] Digest: generating secret for digest authentication ...
[Fri May 18 19:08:56 2012] [notice] Digest: done
[Fri May 18 19:08:56 2012] [notice] Apache/2.2.21 (Unix) DAV/2 configured -- resuming normal operations
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...
Last edited: