error 404 when viewing localhost site

Hi there I am ttrying to use the normal apache server that comes with mac, I recently put a site into my "sites" folder and tried to view it using my ip 192.168.1.34/~username/ but all I get is error 404 can't locate the URL on this server, when I load localhost I still get the apache page. It worked fine before until I loaded xmamp.
I now use mamp which means I don't have to deal with port 80 but I would still like to get it running.

ibook g4; Mac OS X (10.4.4), Mac OS X (10.4.4)

Posted on Jun 10, 2006 3:08 PM

Reply
6 replies

Jun 29, 2006 9:46 AM in response to Yorkie Chadwick

here are the results for the Is command
-rw-r--r-- 1 root wheel 38335 Jun 29 12:49 /etc/httpd/httpd.conf
-rw-r--r-- 1 root wheel 38336 Jun 29 14:28 /etc/httpd/httpd.conf
-rw------- 1 root wheel 1 Jun 24 03:45 /etc/httpd/httpd.conf..save
-rw-r--r-- 1 root wheel 37417 Mar 21 2005 /etc/httpd/httpd.conf.bak
-rw-r--r-- 1 root wheel 38334 Mar 21 2005 /etc/httpd/httpd.conf.default
-rw------- 1 root wheel 38336 May 20 20:31 /etc/httpd/httpd.conf.save
-rw------- 1 root wheel 38332 May 20 20:44 /etc/httpd/httpd.conf.save.1
-rw-r--r-- 1 root wheel 38372 Nov 30 2004 /etc/httpd/httpd.conf.user_modified

I hope this makes sense to some one out there.

Jun 10, 2006 4:21 PM in response to Yorkie Chadwick

You're talking in circles. Unless you have a port number on the URL, you have to deal with port 80, http's well known port number.

If you're using a URL of 192.168.1.34/~username/ you must have /Users/username/Sites/index.html in place. If the file is named anything else, the default configuration of Apache won't look for it. Depending on how Apache's configged, it could give a 403 Permission denied error for other reasons.

One thing, Apache uses the *nix on OSX, and is case sensitive, that may be getting you.

Could you look at /var/log/httpd/error_log and post a couple of the messages? That would be very helpful in troubleshooting this.

Roger

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

error 404 when viewing localhost site

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.