Nginx + Perl
daozor
nginx-forum at nginx.us
Mon Jan 24 16:23:08 MSK 2011
In folder /var/www/twiki/bin there are many perl files:
attach
changes
configure
edit
login
logon
logos
manage
oops
preview
rdiff
rdiffauth
register
rename
resetpasswd
rest
save
search
statistics
twiki_cgi
upload
view
viewauth
viewfile
[code]
# file configure
configure: perl script text executable
[/code]
Server/location in nginx.conf:
[code]
server {
listen 80;
server_name twiki;
location / {
root /var/www/twiki/;
index index.html;
}
location /twiki/bin {
root /var/www/twiki/bin/;
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:10001;
fastcgi_param SCRIPT_FILENAME
/var/www/twiki$fastcgi_script_name;
}
}
[/code]
Go to http://localhost/twiki/bin/configure and browser downloads a file
:(
===
This example is work fine, but here *.cgi ...
[code]
location ~ .cgi$ {
root /var/www/nagios/cgi-bin/;
rewrite ^/nagios/cgi-bin/(.*)\.cgi
/$1.cgi break;
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:10001;
fastcgi_param SCRIPT_FILENAME
/var/www/nagios$fastcgi_script_name;
}
[/code]
no ideas..
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,169050,169078#msg-169078
More information about the nginx
mailing list