-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Brad Hodges a écrit :
> Another approach is to use an auth_mod module for Apache. I use the shadow,
> but there are others. Specifically:
>
> Do a search for the mod_auth_shadow plug-in for Apache and download it. I
> found mine at http://sourceforge.net/project/showfiles.php?group_id=11283
>
> mod_auth_shadow-2.1
>
> I did one #aptitude install libapache-mod-auth-shadow
>
> if I do #dpkg-reconfigure apache, now mod-auth-shadow is listed .
>
> Once downloaded:
>
> tar xvfs mod_auth_shadow-2.1.tar.gz
> cd mod_auth_shadow-2.1
> make all
> make install
>
> Edit your http.conf and add the following two lines in your listed config:
>
Where ? What do you mean by "listed config" ?
I put it at the end of my /etc/apache-ssl/httpd.conf
like this :
<Directory "/var/www/dspam/html">
Options FollowSymLinks ExecCGI
AllowOverride None
Order deny,allow
Deny from all
AddHandler cgi-script .cgi .pl
SSLRequireSSL
AuthType Basic
AuthName "DSPAM Control Center"
SuexecUserGroup dspam dspam
AuthShadow on
# AuthUserFile /var/www/dspam/etc/htpasswd#
Require valid-user
Satisfy Any
</Directory>
> SuexecUserGroup dspam dspam
> AuthShadow on
>
> Remove the AuthUserFile line, save the file then:
>
> service httpd restart
>
I have now following error message :
/etc/init.d/apache-ssl restart
Configuration syntax error detected, not starting/reloading...
Syntax error on line 1262 of /etc/apache-ssl/httpd.conf:
Invalid command 'SuexecUserGroup', perhaps mis-spelled or defined by a
module not included in the server configuration
failed!
/etc/init.d/apache restart is O.K
Thanks for the help.
mahashakti89
> This will then read your shadow file on your server. This is very helpful
> as you wont need to make any further modification to the .htpasswd file when
> you add a user or change a password.
>
> Hope that helps.
>
> Brad
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> mahashakti89
> Sent: Wednesday, March 07, 2007 6:14 AM
> To: [email protected]
> Subject: [dspam-users] access to the webfrontend & dspam ControlCenter
>
> Hi !
>
> After setting up dspam as a content filter, it works now O.K, I am
> trying to set up the webfrontend, but ....
> if I turn my browser to https://localhost/dspam/html/dspam.cgi , I am
> prompted for a username and a password ... Seems quite natural
> I tried it with User root and Password xxxx, but it doesn't work ... I
> am not familiar with apache and servers, I am on a standalone machine
> with a RTC connection . I think something is wrong with my httpd.conf ...
>
> Could need some help.
>
> I added this section from a Debian specific Howto in my httpd.conf :
>
> <Directory "/var/www/dspam/html">
> Options FollowSymLinks ExecCGI
> AllowOverride None
> Order deny,allow
> Deny from all
> AddHandler cgi-script .cgi .pl
> SSLRequireSSL
> AuthType Basic
> AuthName "DSPAM Control Center"
> AuthUserFile /var/www/dspam/etc/htpasswd
> Require valid-user
> Satisfy Any
> </Directory>
>
>
> mahashakti89
!DSPAM:45eeba52312417136010556!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFF7tMEI8R+aqI0N8ERAn28AKC+HCEzDPmoIn/Ccn+lLLO8L5hozQCeId4T
ND9UF5DgH3M2fCuG5yntriE=
=eR+/
-----END PGP SIGNATURE-----