Welcome! Log In Create A New Profile

Advanced

Re: Perl - awstats.pl config

November 27, 2011 05:37PM
Hello again, just tried something like that:

location = /cgi-bin/awstats.pl {
root /usr/lib/cgi-bin;
gzip off;
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_param SCRIPT_FILENAME /usr/lib/cgi-bin/awstats.pl;
}

But i only get a 403 as error.

Error message is:
*415 FastCGI sent in stderr: "Cannot get script name, is DOCUMENT_ROOT and SCRIPT_NAME set and is the script executable?" while reading response header from upstream, client: 80.24.x.x, server: test, request: "GET /cgi-bin/awstats.pl HTTP/1.1", upstream: "fastcgi://unix:/var/run/fcgiwrap.socket:",

And why is the root-part needed? SCRIPT_FILENAME is not enough?

Thanks
Subject Author Posted

Perl - awstats.pl config

Veerle November 27, 2011 01:59PM

Re: Perl - awstats.pl config

António P. P. Almeida November 27, 2011 02:08PM

Re: Perl - awstats.pl config

Veerle November 27, 2011 05:25PM

Re: Perl - awstats.pl config

Veerle November 27, 2011 05:37PM

Re: Perl - awstats.pl config

Cyril Lavier November 27, 2011 05:50PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 141
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