<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div>Hello People !</div><div><br></div><div>I begin a configure DSPAM, and the interface is basead in ngix. <br></div><div>When I go to http://10.26.7.249:8080/dspam/cgi-bin/admin.cgi, come 403 Forbbiden.</div><div>The configuration the DSPAM is abaixo,case any can to read.<br></div><div><br></div><div>server {<br><br> listen 8080; ## listen for ipv4<br> #listen [::]:80 default ipv6only=on; ## listen for ipv6<br><br> server_name 10.26.7.249;<br><br> access_log /var/log/nginx/localhost.access.log;<br><br> location /
{<br> root /var/www;<br> index index.html index.htm;<br> }<br><br> location /doc {<br> root /usr/share;<br> autoindex on;<br> allow 127.0.0.1;<br> deny all;<br> }<br><br> location /images
{<br> root /usr/share;<br> autoindex on;<br> }</div><div><br></div><div> location /dspam/cgi-bin {<br> auth_basic DSPAM;<br> auth_basic_user_file /var/www/dspam/passwords;<br> include /etc/nginx/fastcgi_params;<br> index dspam.cgi;<br> fastcgi_param
SCRIPT_FILENAME<br> $document_root$fastcgi_script_name;<br> fastcgi_param REMOTE_USER $remote_user;<br> if ($uri ~ \.cgi$ ){<br> fastcgi_pass unix:/var/run/fcgiwrap.socket;<br> }<br> }<br><br> How I can make this
?</div><div><br></div><div>Thanks.</div><div><br></div><div>Rodrigo<br></div><div><br></div><div>---------------------------------------------------------------------------------------------------<br></div><div>http://wiki.linuxwall.info/doku.php/en:ressources:dossiers:dspam</div><div><br></div><div>See the steps:</div><div><br></div><pre class="code">----------------------------------------------------<br> Put user DSPAM<br><br>#/etc/init.d/fcgiwrap
FCGI_USER= dspam
FCGI_GROUP=dspam<br>/etc/init.d/fcgiwrap restart
# chmod o+w /var/run/fcgiwrap.socket<br>-------------------------------------------------------------<br>Add this lines in /etc/nginx/sites-available/default<br>vim /etc/nginx/sites-available/default
[...]
location /dspam/cgi-bin {
auth_basic « DSPAM »;
auth_basic_user_file /var/www/dspam/passwords;
include /etc/nginx/fastcgi_params;
index dspam.cgi;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param REMOTE_USER $remote_user;
if ($uri ~ « \.cgi$ »){
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
}
# /etc/init.d/nginx restart<br>---------------------------------------------------------------------------------------------<br>Define password para o user jean-kevin@debian.lab
<br>htpasswd -c /var/www/dspam/passwords jean-kevin@debian.lab
New password:
Re-type new password:
Adding password for user jean-kevin@debian.lab
# cat /var/www/dspam/passwords
jean-kevin@debian.lab:H2CigqsDz1U4E
# chown dspam:www-data /var/www/dspam/passwords
# chmod o-rwx /var/www/dspam/password<br><br>-------------------------------------------------------------------------------------------------<br>Copy inteface for /var/www/dspam<br><br>cp -r ~/dspam-3.9.1-RC1/webui/* /var/www/dspam/
# chown dspam:www-data /var/www/dspam -R<br>--------------------------------------------------------------------------------------------------<br>#define variables for configure.pl<br>$CONFIG{’DSPAM_HOME’} = “/var/spool/dspam”;
$CONFIG{’DSPAM_BIN’} = “/usr/bin”;
[...]
$CONFIG{’WEB_ROOT’} = “/dspam/htdocs/”;
[...]
$CONFIG{’LOCAL_DOMAIN’} = “debian.lab”;<br>-----------------------------------------------------------------------------------------------------<br>he interface provides an administration section. To have access to it,
you need to declare an admin in the file
‘/var/www/dspam/cgi-bin/admins’.
<br>echo ‘jean-kevin@debian.lab’ >> /var/www/dspam/cgi-bin/admin<br><br></pre><div><br></div></div></body></html>