Apache Web-Serving with Mac OS X, Part 4
Subject:   Almost, But Not Quite: .htaccess
Date:   2002-04-06 07:16:45
From:   jgbutler
Thanks for a very informative series. It's been a great help to me and just about convinced me to dump MS IIS and move on over to Mac OS X with Apache!

One thing, though...

I've ALMOST got that ding-dang .htaccess deal working, but not quite. Perhaps you can see what I've missed...

After successfully making .htpasswd, I created a .htaccess file with the following in it:

AuthName "Uber Goober Ad Campaign"
AuthType Basic
AuthUserFile /Library/WebServer/.htpasswd
require valid-user

I put .htaccess in /Library/WebServer/Documents, but it has no effect. Index.shtml is served up and no authentication is requested when the server is accessed.

I'm pretty sure I've got .htpasswd correctly built cuz authentication WILL work for the ENTIRE Website if I put the Auth lines in httpd.conf.

I should also mention that httpd.conf contains the following:

<Directory "/Library/WebServer/Documents">
Options FollowSymLinks MultiViews Includes
AllowOverride All
Order allow,deny
Allow from all

Thanks for your help!

--Jeremy Butler

1 to 1 of 1
  1. Almost, But Not Quite: .htaccess - SOLVED!
    2002-04-11 09:37:05  jgbutler [View]

    • Kevin Hemenway photo Almost, But Not Quite: .htaccess - SOLVED!
      2002-04-16 17:20:08  Kevin Hemenway | O'Reilly AuthorO'Reilly Blogger [View]

      • Almost, But Not Quite: .htaccess - SOLVED!
        2002-05-02 09:16:37  naclay [View]

        • Almost, But Not Quite: .htaccess - SOLVED!
          2002-07-15 13:27:06  jgbutler [View]

1 to 1 of 1