|
ru.cgi.perl- RU.CGI.PERL ------------------------------------------------------------------ From : Dan Kovalchuk 2:5045/55 03 Oct 2001 21:05:11 To : Vladimir Volovich Subject : mod_perl question -------------------------------------------------------------------------------- Friday September 28 2001 23:00, you wrote to All: VV> может кто-то подскажет по такому вопросу: VV> имеется сервер apache, на котором практически везде используются VV> server side includes, много cgi скриптов. VV> хотелось бы анализировать отдаваемые пользователю документы, пропуская VV> их через какой-то фильтр (для сбора некоей статистики). VV> т..е. при запросе напр., html файла, apache пропускает его через VV> встроенный handler server-parsed, после чего хотелось бы пропустить VV> еще через handler, собирающий статистику. VV> при запросе CGI хотелось бы напустить этот фильтр на результирующий VV> документ, сгенерированный CGI скриптом. VV> и т.д., -- т.е. пропускать через фильтр все, что отдается VV> пользователю.. VV> можно ли это сделать при помощи mod_perl? я знаю про Apache::SSI, VV> Apache::Filter, Apache::OutputChain, а как быть с CGI скриптами? VV> или есть какой-то другой способ? Берем в руки Writing Apache Modules with Perl and C и читаем. Особенно выделенную часть. === Cut === DECLINED The handler has decided it doesn't want to handle the request. Apache will act as if the subroutine were never called and either handle the phase internally or pass the request on to another module that has expressed its interest. Even if all registered modules return DECLINED for a particular phase, it will still be handled by the Apache core, which has default handlers for each phase (even if they do nothing). >It is possible for a module to lie when it declines a transaction. It >may actually have done some work but wishes to let another module take >the ultimate responsibility for the phase. For example, an authentication >handler might manage caching of credential lookups from a database, but >not actually make the authentication decision itself. === Cut === Dan --- FMail/Win32 1.60 * Origin: Rockin' Echo (by 2:5045/55) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.cgi.perl/18583bbb7f92.html, оценка из 5, голосов 10
|