Welcome! Log In Create A New Profile

Advanced

Re: Perl - awstats.pl config

António P. P. Almeida
November 27, 2011 02:08PM
On 27 Nov 2011 18h59 WET, nginx-forum@nginx.us wrote:

> Hello,
>
> i try to implement a awstats.pl for every vhost on my nginx
> installation.
>
> I tried it the following:
>
> location ~ ^/awstats/ {
> gzip off;
> include /etc/nginx/fastcgi_params;
> fastcgi_pass unix:/var/run/fcgiwrap.socket;
> fastcgi_param SCRIPT_FILENAME /usr/lib/cgi-bin/awstats.pl;
> }
>
> I think i'm to stupid for the location part, it works fine with
> \.pl$ but not with a path, it would be nice to could configure a
> "directoy" like /awstats/ in every vhost and then runs the
> awstats.pl through the socket (socket is working), but not the
> SCRIPT_FILENAME-part.
>
> I only found documentions with a php-application who runs the
> perl-file.
>
> Thanks :/
>

Try:

location = /awstats.pl {
root /usr/lib/cgi-bin;
gzip off;
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
# Not needed if already in fastcgi_params.
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

--- appa

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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: 115
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready