Women in Technology

Hear us Roar

  Apache Web-Serving with Mac OS X, Part 4
Subject:   Personal configurations and passwd authentication
Date:   2002-03-11 17:00:44
From:   morbus
Response to: Personal configurations and passwd authentication

When you get that 403 error, check your error logfile - does your IP address show as 127 or localhost? If it doesn't, then you'll need to add that IP into your "Allow" line. You can only have one IP, IP range, or hostname per "Allow" line.

Finally, authentication will NOT work unless you've told Apache to allow authetication under the Sites directory. This involves opening your username.conf file (located in /etc/httpd/users/username.conf) and adding "AllowOverride AuthConfig" (for just authentication control) or "AllowOverride All" (to allow overriding of all default Apache directives).

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Personal configurations and passwd authentication
    2002-03-11 18:37:51  spiffyman [View]

    Thanks for the help, but I'm still having problems. The error log reads my static IP address, so I changed the .conf file to read:

    <Directory "/Users/jboyd/Sites/">
    Options -Indexes MultiViews
    AllowOverride All
    Order deny,allow
    Deny from all
    Allow from my.address.is.here

    Still Forbidden, and still no password authentication. Also, I still can't access the DocumentRoot using localhost or I didn't think my personal .conf file or my .htaccess file would change that. Am I missing something?

    Thanks a bunch.
    • Morbus Iff photo Personal configurations and passwd authentication
      2002-03-13 20:15:36  Morbus Iff | O'Reilly Author [View]

      What do you have in the /Users/jboyd/Sites/ directory? Is there a index.html or index.htm file in there? As it is now, with "-Indexes" turned off in your config, I'm thinking that Apache's trying to resolve an index *first*, before the user authentication.

      First things first, change "-Indexes" to just place old "Indexes", so that automatic indexes are created. THEN try getting to /~jboyd/ and tell me what you see.

      Concerning your DocumentRoot, no, an .htaccess file shouldn't be able to harm that, but using you could do some damage with your user .conf file. If the .conf file is all you've shown me here though, then it shouldn' t be a problem.

      Finally, what are the contents of your error_log, shortly after you get the 403 Forbidden error message?