~ubuntu-branches/ubuntu/edgy/libapache2-mod-perl2/edgy

« back to all changes in this revision

Viewing changes to docs/api/Apache2/Status.pod

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2006-03-24 02:48:44 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060324024844-73oxqkcj2jmlmh2t
Tags: 2.0.2-2build1
Fake sync to bring in new upstream bugfixes, UVF exception by mdz.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
  <Location /perl-status>
11
11
      SetHandler modperl
12
 
      PerlResponseHandler Apache2::Status
13
 
  </Location>
14
 
 
 
12
      PerlOptions +GlobalRequest
 
13
      PerlResponseHandler Apache2::Status
 
14
  </Location>
 
15
 
 
16
  or
 
17
 
 
18
  <Location /perl-status>
 
19
      SetHandler perl-script
 
20
      PerlResponseHandler Apache2::Status
 
21
  </Location>
15
22
 
16
23
 
17
24
 
25
32
 
26
33
  <Location /perl-status>
27
34
      SetHandler modperl
 
35
      PerlOptions +GlobalRequest
28
36
      PerlResponseHandler Apache2::Status
29
37
  </Location>
30
38
 
47
55
  Apache2::Status->menu_item(
48
56
      'DBI' => "DBI connections", #item for Apache::DBI module
49
57
      sub {
50
 
          my($r, $q) = @_; #request and CGI objects
51
 
          my(@strings);
 
58
          my ($r, $q) = @_; #request and CGI objects
 
59
          my (@strings);
52
60
          push @strings,  "blobs of html";
53
61
          return \@strings;     #return an array ref
54
62
      }
58
66
the C<PerlModule> or C<PerlRequire> directives (or from
59
67
F<startup.pl>).
60
68
 
61
 
 
62
 
 
63
 
 
 
69
A very common setup might be:
 
70
  Perl Module B::TerseSize
 
71
 
 
72
  <Location /perl-status>
 
73
      SetHandler perl-script
 
74
      PerlResponseHandler Apache2::Status
 
75
      PerlSetVar StatusOptionsAll On
 
76
      PerlSetVar StatusDeparseOptions "-p -sC"
 
77
  </Location>
 
78
 
 
79
due to the implementation of Apache2::Status::noh_fileline in B::TerseSize,
 
80
you must load B::TerseSize first.
64
81
 
65
82
=head1 Options
66
83
 
172
189
 
173
190
 
174
191
 
175
 
 
176
 
 
177
192
=head1 Copyright
178
193
 
179
194
mod_perl 2.0 and its core modules are copyrighted under