ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Как запустить perl-програ мму в nginx




3 ??????? 2011??. 23:14 ???????????? ????? ??????? <greyhard@xxxxxxxxx> ???????:
????? ????????? ?????? ??? ?????? *.pm ? ?????????? ??? ? ??????? Nginx.
??? ???? ??????? ????? FastCGI ? ?????? ??? CGI ? ?????

??????, ??? ?????? - ??????????! ?? ???? ?????????.

perl/lib/hello.pm ????????? ? ?????/usr/local/lib/perl/5.10.1 , ?????? ??? ?????? ??? ???????? ???? nginx.pm ????? ???????? nginx.

?????? ????????? ???????? ? ????? ? ???????? hello!

??, ????? ? ??????? ??? ???? ??????? hello, ?? ??? ??????-?? ?? ?????????

$r->print("hello!\n<br/>");
$r->print("hello2!\n<br/>");
, ?? ??? ??????-?? ?? ????????? ? ????????, ????? ????, ??? ??????????? ?????? ????????.
server {
...
? ? ?location /cgi-bin {
? ? ? ? ? ? perl ?hello::handler;
? ? ? ? }
...
}

???????? ???: 127.0.0.1/cgi-bin

? ???? ????? ????, ??? ? ?????? hello.pm ??/usr/local/lib/perl/5.10.1, ?? ??? ????? ?????? ?????? hello!

? ??? ???????, ???-?? nginx ??????????? ??????. ??? ??? ??????????????



_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.