Women in Technology

Hear us Roar

  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 ???



Full Threads Oldest First

Showing messages 1 through 1 of 1.