Help Processing a pl script pls

AMP Admin admin at
Sat Jun 27 21:58:00 MSD 2009

So if you put it will run your ?

-----Original Message-----
From: owner-nginx at [mailto:owner-nginx at] On Behalf Of
Jools Wills
Sent: Saturday, June 27, 2009 5:21 AM
To: nginx at
Subject: Re: Help Processing a pl script pls

Here is how I handle awstats. I also use fcgiwrap to handle the

  location ~ ^/stats/ {
    fastcgi_pass unix:/tmp/cgi.sock;
    fastcgi_param SCRIPT_FILENAME    /usr/lib/cgi-bin/;
    fastcgi_param SCRIPT_NAME;
    fastcgi_param DOCUMENT_ROOT      /usr/lib/cgi-bin/;
    include fastcgi_params;
    auth_basic            "Restricted Area";
    auth_basic_user_file  /etc/apache2/passwords/awstats;

  location /awstats-icon/ {
    alias /usr/share/awstats/icon/;

my other params look like

fastcgi_param  QUERY_STRING       $query_string;
fastcgi_param  REQUEST_METHOD     $request_method;
fastcgi_param  CONTENT_TYPE       $content_type;
fastcgi_param  CONTENT_LENGTH     $content_length;

# read its better to leave this out for php ?
fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;
fastcgi_param  REQUEST_URI        $request_uri;
fastcgi_param  DOCUMENT_URI       $document_uri;
fastcgi_param  DOCUMENT_ROOT      $document_root;
fastcgi_param  SERVER_PROTOCOL    $server_protocol;

fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
fastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;

fastcgi_param  REMOTE_ADDR        $remote_addr;
fastcgi_param  REMOTE_PORT        $remote_port;
fastcgi_param  SERVER_ADDR        $server_addr;
fastcgi_param  SERVER_PORT        $server_port;
fastcgi_param  SERVER_NAME        $server_name;
fastcgi_param  REMOTE_USER        $remote_user;

# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param  REDIRECT_STATUS    200;

More information about the nginx mailing list