Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mactoph

macrumors newbie
Original poster
Aug 15, 2003
5
0
Boston, MA
When I type in localhost or 127.0.0.1 in my browser it brings up the default Apache welcome page. However, when I go to MacHD/Users/Username/Sites there are no files there- completely empty!

Also, when I type in http://127.0.0.1/~UserName/
I get a 403 Forbidden message.

I'm sure that I have probably caused this problem, but I can't figure out where those apache files are coming from- is there a way to track that down?

Much Thanks-
 
When you don't specify a user name, the files are served from the system default DocumentRoot, which should be /Library/WebServer/Documents/

Additionally, the apache install on your mac gives a forbidden error when you don't have an index page in a directory and you only specify the directory in your url (ie. not requesting a particular page) since there is no default page to display and the index listing is disabled by default on the Mac OS X install of apache. If you add an index.html file to your ~/Sites folder, http://127.0.0.1/~UserName/ will display that index page.

So you haven't done anything wrong.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.