How to run .pl under nginx with fcgiwrap.
June 10, 2014 07:40AM
Hello nginx community.
Today i had installed and tried to configure fcgiwrap with nginx.

Here are the examples :

/etc/nginx/server/server.cfg

location ~ \.pl$ {
gzip off;
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:8999;
fastcgi_index index.pl;
fastcgi_param DOCUMENT_ROOT /var/nginx/domain_com/folder;
fastcgi_param SCRIPT_FILENAME /var/nginx/domain_com/folder/$fastcgi_script_name;
}

And

/etc/init.d/fcgiwrap

# FCGI_APP Variables
FCGI_CHILDREN="1"
FCGI_PORT="8999"
FCGI_ADDR="127.0.0.1"
FCGI_USER="nginx"
FCGI_GROUP="nginx"

Saved and restarted without errors but when i try to open domain.tld/folder/file.pl i get a blank page with number 403 . it seems that fcgiwrap can't find the pl file . Where i go wrong on this ?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 186
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready