Hello People ! I begin a configure DSPAM, and the interface is basead in ngix. When I go to http://10.26.7.249:8080/dspam/cgi-bin/admin.cgi, come 403 Forbbiden. The configuration the DSPAM is abaixo,case any can to read. server { listen 8080; ## listen for ipv4 #listen [::]:80 default ipv6only=on; ## listen for ipv6 server_name 10.26.7.249; access_log /var/log/nginx/localhost.access.log; location / { root /var/www; index index.html index.htm; } location /doc { root /usr/share; autoindex on; allow 127.0.0.1; deny all; } location /images { root /usr/share; autoindex on; } 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; } } How I can make this ? Thanks. Rodrigo --------------------------------------------------------------------------------------------------- http://wiki.linuxwall.info/doku.php/en:ressources:... See the steps: ---------------------------------------------------- Put user DSPAM #/etc/init.d/fcgiwrap FCGI_USER= dspam FCGI_GROUP=dspam /etc/init.d/fcgiwrap restart # chmod o+w /var/run/fcgiwrap.socket ------------------------------------------------------------- Add this lines in /etc/nginx/sites-available/default 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 --------------------------------------------------------------------------------------------- Define password para o user jean-kevin@debian.lab 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 ------------------------------------------------------------------------------------------------- Copy inteface for /var/www/dspam cp -r ~/dspam-3.9.1-RC1/webui/* /var/www/dspam/ # chown dspam:www-data /var/www/dspam -R -------------------------------------------------------------------------------------------------- #define variables for configure.pl $CONFIG{’DSPAM_HOME’} = “/var/spool/dspam”; $CONFIG{’DSPAM_BIN’} = “/usr/bin”; [...] $CONFIG{’WEB_ROOT’} = “/dspam/htdocs/”; [...] $CONFIG{’LOCAL_DOMAIN’} = “debian.lab”;
on 2012-08-09 20:46
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.