Doug Boyd wrote:
> SuSE 9.0 Pro.  Everything seems to work except the webserver.  I'd like
> Apache to request a password.  Here's what I did.
> 
> I placed the .htaccess file in /srv/www/htdocs
> 
> AuthType Basic
> AuthName "Invitation Only"
> AuthUserFile /etc/httpd/passwd/.htpasswd
> Require user doug
> 
> I executed the following command:  htpasswd -c
> /etc/httpd/passwd/.htpasswd doug

sorry for the tardy reply:

first, check to make sure the user that apache is running as has read
permissions for /etc/httpd/passwd/.htpasswd

second, you need to configure apache to know it should be looking for
htaccess files in the /srv/www/htdocs directory.  something like this:

<Directory /srv/www/htdocs>
  # ...
  AllowOverride AuthConfig
  # AllowOverride All
  # ...
</Directory>

for more docs on AllowOverride, see
http://httpd.apache.org/docs-2.0/mod/core.html#allowoverride

it seems the suse way of configuring apache is by breaking the config file
up into smaller pieces.  from the looks of the httpd.conf file, you should
look in default-server.conf

Dave


_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca

Reply via email to