Safari cannot connect to the server

mmumma

Registered
I sincerely hope someone can help me with my webserver problem. I will try to detail the problem and the attempted solutions. I cannot connect to my local webserver when websharing is turned on. I get the message "Safari cannot connect to the server...". I used to have a webserver running but didn't use it for about a year. Upgraded to Snow Leopard since then. Now when I turn on websharing and click on the link or type my network address in safari or type localhost or 127.0.0.1 I get the above error message. I have tried every suggestion I could find searching the internet and nothing works. However, I have some clues about what may be wrong:

My old webserver used port 8000. So, when I type http://localhost:8000 or http://192.168.0.1:8000 I get the page that just says "It Works!". This is the index.html.en file located in /Library/Webserver/Documents folder. It does not find any of my index.html files either in the //localhost/users/username/sites folder or the //localhost/site folder. If I type http://localhost/username:8000 it says cannot connect to server. My httpd.conf file has this line: Listen 8000. BUT, when I comment out that line, I can still only connect on port 8000. That seems to mean to me that the file /private/etc/apache2/httpd.conf file is NOT the real config file that apache is using.

So, if I can figure out why it's using the index.html file from the /Library/Webserver/Documents folder instead of the /username/sites folder, and/or if I could figure out where the real httpd.conf file is hiding, maybe I can figure out the problem. I should say that the error_log file has many errors that say "File does not exist:/Library/WebServer/Documents/favicon.ico" or "File does not exist: /Library/WebServer/Documents/prx2.php" but I really can't figure out if this has any bearing.

Any ideas are greatly appreciated -- including ideas about who I can get to help me if I cannot fix this problem!

Thanks
 
Back
Top