Установил вроде бы как надо. Но выдает содержимое файла вместо запуска скрипта.
Конфиг nginx
location ~ .pl$ {
set $referer $http_referer;
proxy_set_header Referer $referer;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host localhost:9001;
proxy_set_header REQUEST_METHOD $request_method;
proxy_set_header REMOTE_USER $remote_user;
proxy_set_header REMOTE_ADDR $remote_addr;
proxy_set_header SERVER_NAME localhost;
proxy_set_header SERVER_PORT 9001;
proxy_set_header HTTP_COOKIE $http_cookie;
root /var/www/****/data/www/******.ru/;
gzip off;
proxy_pass http://127.0.0.1:9001;
Конфиг mini-httpd
# On which port mini_httpd should listen?
port=9001
# Which user mini_httpd should use?
user=www-data
# Run in chroot mode?
#chroot # yes
nochroot # no
# Working directory of mini_httpd.
dir=/var/www/******/data/www/********.ru
# We are the web files stored?
# Please change this to your needs.
data_dir=/var/www/*****/data/www/******.ru
# Which certificate to use?
#certfile=<certfile>
# Which logfile to use?
logfile=/var/log/mini-httpd.log
# Which pidfile to use?
pidfile=/var/run/mini-httpd.pid