[nylug-talk] Apache Authentication

VaibhaV Sharma vaibhav at vaibhavsharma.com
Mon May 12 00:49:03 EDT 2003


On Sun, 11 May 2003, jose sanchez wrote:

<snip>

> Hello:

 
> This is my .htaccess file:
> 
> AuthType Basic
> AuthName "Statistics"
> AuthUserFile /usr/apache/users/kcmultiservices
> require valid-user
> 
> These are the compiled-in modules:
> 
> whmicro-www:/home/www/logs# /usr/apache/bin/httpd -l
> Compiled-in modules:
>   http_core.c
>   mod_env.c
>   mod_log_config.c
>   mod_mime.c
>   mod_negotiation.c
>   mod_status.c
>   mod_include.c
>   mod_autoindex.c
>   mod_dir.c
>   mod_cgi.c
>   mod_asis.c
>   mod_imap.c
>   mod_actions.c
>   mod_userdir.c
>   mod_alias.c
>   mod_access.c
>   mod_auth.c
>   mod_auth_digest.c
>   mod_so.c
>   mod_setenvif.c
> suexec: disabled; invalid wrapper
> /usr/apache/bin/suexec

</snip>
 
> Do I need to add the AddModule mod_auth.c or
> LoadModule mod_auth.c in order for the authentication
> to work or there's somthing wrong I'm doing?

mod_auth already seems to be compiled in, you dont need to load it again.

The only thing I see missing is the AllowOverride directive which apache 
would need to be able to allow .htaccess to function.

Try adding this to your httpd.conf

 AllowOverride AuthConfig

If this is a virtual host, put this in the particular virtual host's 
block.

Alternatively, check - 
http://httpd.apache.org/docs-2.0/howto/auth.html

Source was this -
http://www.google.com/search?q=apache+basic+authentication+howto

HTH

VaibhaV
http://vsharma.net




More information about the nylug-talk mailing list