ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Apache Web-Serving with Mac OS X, Part 4
Subject:   Personal configurations and passwd authentication
Date:   2002-03-11 03:42:19
From:   spiffyman
First, I just want to say thanks for a really great tutorial. After reading the Terminal tutorials and yours, I'm planning on ordering my first O'Reilly books. If they're anything like yours, I know they'll be good.


In the meantime, though, I'm having a few problems.


After configuring my .conf file (jboyd.conf), I cannot access localhost or 127.0.0.1, and when I try to access /~jboyd/ with localhost, it gives me a 403 Forbidden error. The .conf looks like this:


<Directory "/Users/jboyd/Sites/">
Options -Indexes MultiViews
AllowOverride None
Order deny,allow
Deny from all
Allow from localhost
</Directory>


I've also tried "Allow from 127.0.0.1" -- to no avail.


(An incidental question: can we set several IP-specific allows or denies using commas or spaces to differentiate them?)


Meanwhile, accessing /~jboyd/ at 127.0.0.1 does not ask for any authentication. I've created an .htaccess file via pico (which now resides in my Sites directory) with the following pertinent lines:


AuthName "Jeremy Boyd's Personal Training Grounds"
AuthType Basic
AuthUserFile /Library/WebServer/.htpasswd
require user jboyd


Yes, the .htpasswd file exists, and yes, jboyd is in it. I'm unsure whether the .htaccess file is in the right place, though.


Any help would be appreciated. Thanks again for great articles, but no thanks for enthralling me and keeping me up all night. ;-)


1 to 1 of 1
  1. Kevin Hemenway photo Personal configurations and passwd authentication
    2002-03-11 17:00:44  Kevin Hemenway | O'Reilly AuthorO'Reilly Blogger [View]

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

      • Kevin Hemenway photo Personal configurations and passwd authentication
        2002-03-13 20:15:36  Kevin Hemenway | O'Reilly AuthorO'Reilly Blogger [View]

1 to 1 of 1