Permisson Denied 403

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:dossiers:dspam

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 [email protected]
htpasswd -c /var/www/dspam/passwords [email protected]
New password:
Re-type new password:
Adding password for user [email protected]

cat /var/www/dspam/passwords

[email protected]: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”;

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs