File: httpd.conf-win32

package info (click to toggle)
apache-perl 1.3.9-14.1-1.21.20000309-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 5,524 kB
  • ctags: 1,743
  • sloc: ansic: 9,017; perl: 7,822; sh: 864; makefile: 695
file content (275 lines) | stat: -rw-r--r-- 3,716 bytes parent folder | download | duplicates (2)
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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275

#make sure all regex stuff works

#BrowserMatch Mozilla/2 nokeepalive


#PerlFreshRestart On

#Configuration directives specific to mod_perl

ServerRoot "./t"

Port 8529

ServerName localhost

DocumentRoot "./t/docs"


#mod_perl stuff

LoadModule perl_module modules/ApacheModulePerl.dll

#-Tw

PerlTaintCheck On

PerlWarn On


PerlSetEnv KeyForPerlSetEnv OK

PerlSetVar KeyForPerlSetVar OK

PerlRequire docs/startup.pl

PerlTransHandler PerlTransHandler





Alias /perl/ ./t/net/perl/

Alias /dirty-perl/ ./t/net/perl/

ScriptAlias /cgi-bin/ ./t/net/perl/

#ScriptAlias /cgi-bin/ ./t/net/perl/

<Location /dirty-perl>
Options +ExecCGI
SetHandler perl-script
PerlHandler Apache::PerlRun
PerlSendHeader On
</Location>

<Location /perl/noenv>
SetHandler perl-script
PerlHandler Apache::Registry::handler
Options +ExecCGI
PerlSendHeader       Off
PerlSetupEnv Off
</Location>

<Location /dirmagic>
PerlHandler My::DirIndex
</Location>

<Location /perl>

SetHandler perl-script

PerlHandler Apache::Registry

Options ExecCGI

</Location>


#<Location /cgi-bin>

#SetHandler cgi-script

#Options ExecCGI

#</Location>


<Location /perl/io>

SetHandler perl-script

PerlHandler Apache::Registry

Options ExecCGI

PerlSendHeader On

PerlSetupEnv   On

</Location>


<Location /perl/perl-status>

SetHandler perl-script

PerlHandler Apache::Status

</Location>


#PerlChildInitHandler My::child_init

#PerlChildExitHandler My::child_exit


#end mod_perl stuff


#

ErrorLog logs/mod_perl_error_log

PidFile logs/mod_perl_httpd.pid

AccessConfig conf/access.conf

ResourceConfig conf/srm.conf

TypesConfig conf/mime.types

TransferLog logs/xferlog

ScoreBoardFile logs/scoreboard


AddType text/x-server-parsed-html .shtml

AddType text/html .html

AddType text/perl-module .pm .PM


Action text/perl-module /perl/action.pl


#PerlModule Apache::Registry

#PerlModule Apache::Safe


#<Location /perl>

#Options ExecCGI

#SetHandler perl-script

#PerlHandler Apache::Registry::handler

#PerlDispatchHandler Apache::Safe::handler

#</Location>


#protect mod_include #perl's

#<Files *.shtml>

#PerlDispatchHandler Apache::Safe::handler

#</Files>


#test some other modules if available

<Location /subr>

SetHandler perl-script

PerlHandler Apache::Sandwich

PerlSetVar HEADER /test.html

PerlSetVar FOOTER "/perl/cgi.pl?PARAM=1 /perl/io/perlio.pl"

</Location>


<Location /STAGE>


ErrorDocument 403 /stage-redir

ErrorDocument 404 /stage-redir


</Location>


#Andreas' Apache::Sandwich

<Location /stage-redir>

# the name of this location must match the ErrorDocument redirects

# above


# PerlSetVar apache_stage_regex " ^ (/STAGE/[^/]*) (.*) $ "


# This regex has to split a staged URI into two parts. It is

# evaluated with the /ox switch in effect, so this will NOT be a

# per-directory variable. The first part will be thrown away and

# just the second part will be served if the original URI cannot

# be accessed. In case of 301 and 302 redirects the first part

# will be prepended again. The default regex is defined as above

# which means that URIS will be split into "/STAGE/anyuser" and

# the rest.


SetHandler perl-script

PerlHandler Apache::Stage

Options ExecCGI


</Location>


#Apache::ePerl

<Files ~ ".+\.iphtml$">

    Options     +ExecCGI

    SetHandler  perl-script

    PerlHandler Apache::ePerl

</Files>


AddType text/html .ehtml

#HTML::Embperl

<Files ~ "\.ehtml$">
SetHandler perl-script
PerlHandler HTML::Embperl
Options +ExecCGI
</Files>  

<Location /perl/noenv>
SetHandler perl-script
PerlHandler Apache::Registry::handler
Options +ExecCGI
PerlSendHeader       Off
PerlSetupEnv Off
</Location> 

<Location /death>
PerlHandler Apache::Death
SetHandler perl-script
</Location>