This file is indexed.

/usr/share/perl5/RunApp/Template/Apache.pm is in librunapp-perl 0.13-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
package RunApp::Template::Apache;
use base qw(RunApp::Template);
use strict;

sub get_template {
  my ($self, $conf) = @_;
  Template->new({ ABSOLUTE => 1,
		  DEBUG_UNDEF => 1,
		  BLOCKS => { extra => $conf->{config_block},
			    },
		  VARIABLES =>
		  { module_symbol =>
		    sub { $_ = shift;
			  if ($conf->{AP_VERSION} == 1) {
			      if ($_ eq 'log_config') {
				  $_ = 'config_log';
			      } elsif ($_ eq 'actions') {
				  $_ = 'action';
			      }
			  }
			  return $_ . '_module';
		     },
		    module_file =>
		    sub {  $_ = shift;
			   if ($conf->{AP_VERSION} == 1) {
			       if ($_ eq 'perl' || $_ eq 'proxy' || $_ eq 'php3' || $_ eq "ssl") {
				   return "lib$_.so";
			       }
			   }
			   return "mod_$_.so"
		       },
		  }
		});
}

=head1 NAME

RunApp::Apache - Apache control from RunApp

=head1 SYNOPSIS

 See RunApp::Apache

=head1 DESCRIPTION

The class provides the default template for apache configuration.  It
uses L<Template Toolkit|Template>.

=head2 variables

=over

=item timeout

Default is 300.

=item KeepAlive

Default is Off.

=item MaxKeepAliveRequests

Default is 100.

=item KeepAliveTimeout

Default is 15.

=item documentroot

=item hostname

=item port

=item webmaster

=item logformat

Default is 'common'.

=item AP_VERSION

Shows the version of the apache used.

=back

=head1 AUTHORS

Chia-liang Kao <clkao@clkao.org>

Refactored from works by Leon Brocard E<lt>acme@astray.comE<gt> and
Tom Insam E<lt>tinsam@fotango.comE<gt>.

=head1 COPYRIGHT

Copyright (C) 2002-5, Fotango Ltd.

This module is free software; you can redistribute it or modify it
under the same terms as Perl itself.

=cut

1;


__DATA__
# DO NOT EDIT THIS FILE.
# Generated for Apache [% AP_VERSION %] by [% PACKAGE %]
[% BLOCK load_module %]
<IfModule !mod_[% module %].c>
    LoadModule [% module_symbol(module) %] "[% LIBEXECDIR %]/[% module_file(module) %]
</IfModule>
[% END %]

ServerRoot "[% root %]"
PidFile [% pidfile %]
ScoreBoardFile [% logs %]/apache_runtime_status

Timeout [% timeout || 300 %]

KeepAlive [% keep_alive || 'Off' %]
MaxKeepAliveRequests [% MaxKeepAliveRequests || 100 %]
KeepAliveTimeout [% KeepAliveTimeout || 15 %]

MinSpareServers [% MinSpareServers %]
MaxSpareServers [% MaxSpareServers %]
StartServers [% StartServers %]
MaxClients [% MaxClients %]
MaxRequestsPerChild [% MaxRequestsPerChild %]

LockFile "[% logs %]/httpd.lock"

<IfModule mod_so.c>

[% FOR module IN required_modules %]
[% PROCESS load_module %]
[% END %]

</IfModule>

[% IF status %]
<IfModule mod_status.c>
  ExtendedStatus On
  <Location /status/perl/>
    SetHandler server-status
  </Location>
</IfModule>
[% END %]

ServerTokens      Prod
ServerSignature   Off

[% IF hostname %]
ServerName        [% hostname %]
[% END %]

[% IF webmaster %]
ServerAdmin       [% webmaster %]
[% END %]

[% IF port %]
Listen		  [% port %]
[% END %]

User [% user %]
Group [% group %]

DocumentRoot "[% documentroot || cwd %]"

<IfModule mod_mime.c>
    TypesConfig [% mime_file %]
</IfModule>

DefaultType text/plain

HostnameLookups Off

ErrorLog "[% logs %]/error_log"

LogLevel warn

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" (%{stopwatch}n usecs)" stopwatch
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

[% IF cronolog.binary %]
CustomLog  "|[% cronolog.binary %] [% logs %]/[% cronolog.access_format %]" [% logformat || 'common' %]
[% ELSE %]
CustomLog "[% logs %]/access_log"  [% logformat || 'common' %]
[% END %]

CoreDumpDirectory /tmp

<IfModule mod_perl.c>
<Perl>

[% IF cover %]
use Devel::Cover
[% IF cover_arg %]
 qw([% cover_arg %]);
[% END %];
[% END %]

[% IF profiler %]
require Profiler::Apache;
[% END %]

</Perl>
</IfModule>

[% PROCESS extra %]