Welcome! Log In Create A New Profile

Advanced

Re: Nginx + Perl

January 24, 2011 08:23AM
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..
Subject Author Posted

Nginx + Perl

daozor January 24, 2011 06:41AM

Re: Nginx + Perl

daozor January 24, 2011 07:25AM

Re: Nginx + Perl

Maxim Dounin January 24, 2011 07:38AM

Re: Nginx + Perl

edogawaconan January 24, 2011 07:40AM

Re: Nginx + Perl

daozor January 24, 2011 08:23AM

Re: Nginx + Perl

edogawaconan January 24, 2011 08:36AM

Re: Nginx + Perl

daozor January 24, 2011 09:07AM

Re: Nginx + Perl

daozor January 24, 2011 09:11AM

Re: Nginx + Perl

edogawaconan January 24, 2011 09:28AM

Re: Nginx + Perl

daozor January 24, 2011 09:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 140
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