Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

How to run .pl under nginx with fcgiwrap.

$
0
0
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 ?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>