Apache files coming from somewhere besides the Sites folder??

Discussion in 'Web Design and Development' started by mactoph, Mar 21, 2008.

  1. mactoph macrumors newbie

    Joined:
    Aug 15, 2003
    Location:
    Boston, MA
    #1
    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-
     
  2. kylos macrumors 6502a

    kylos

    Joined:
    Nov 8, 2002
    Location:
    MI
    #2
    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.
     
  3. mactoph thread starter macrumors newbie

    Joined:
    Aug 15, 2003
    Location:
    Boston, MA

Share This Page