Apache Web-Serving with Mac OS X, Part 4
Subject:   .htaccess syntax
Date:   2002-02-24 10:45:16
From:   pbates
In trying to implement password access, I am generating a 500 error. The error log file gives me the following line:

/Library/WebServer/Documents/.htaccess: AuthName takes one argument, The authentication realm (e.g. "Members Only")

Here is the contents of .htaccess

AuthName "Testing"
AuthType Basic
AuthUserFile /Library/Webserver/.htpasswd
require valid-user

Interestingly, if I cat .htaccess, I see only the last line of the file unless I use the -v option.
BBedit shows me that there are line breaks after each line but ???



1 to 1 of 1
  1. Kevin Hemenway photo .htaccess syntax
    2002-02-25 08:23:50  Kevin Hemenway | O'Reilly AuthorO'Reilly Blogger [View]

1 to 1 of 1