Welcome! Log In Create A New Profile

Advanced

Permisson Denied 403

August 09, 2012 02:48PM
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 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”;
-----------------------------------------------------------------------------------------------------
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’.
echo ‘jean-kevin@debian.lab’ >> /var/www/dspam/cgi-bin/admin_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Permisson Denied 403

rodrigo August 09, 2012 02:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 165
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready