summaryrefslogtreecommitdiffstats
path: root/debian/perl-framework/t/conf/extra.conf.in
blob: a684f767334eec0412d966adfc899618f0ae7a04 (plain)
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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
##
## FileETag test config
##
<Directory @SERVERROOT@/htdocs/apache/etags>
    AllowOverride All
    Order Deny,Allow
#    Satisfy Any
</Directory>

##
## Options override test config
##
<Directory @SERVERROOT@/htdocs/apache/htaccess/override>
    AllowOverride All
    Options -Includes
</Directory>

##
## AcceptPathInfo test config
##
<IfDefine APACHE2>
    <Directory @SERVERROOT@/htdocs/apache/acceptpathinfo>
        # default is AcceptPathInfo default
        Order Deny,Allow
        Allow from all
        <IfModule @CGI_MODULE@>
            AddHandler cgi-script .sh
            Options +ExecCGI +Includes +Indexes
        </IfModule>
        <IfModule mod_include.c>
            DirectoryIndex index.shtml
            AddOutputFilter INCLUDES shtml
        </IfModule>
    </Directory>
    <Directory @SERVERROOT@/htdocs/apache/acceptpathinfo/on>
        AcceptPathInfo on
    </Directory>
    <Directory @SERVERROOT@/htdocs/apache/acceptpathinfo/off>
        AcceptPathInfo off
    </Directory>
</IfDefine>

##
## mod_php4/mod_php5 test config
##

<IfModule @PHP_MODULE@>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
</IfModule>

<IfDefine APACHE2>
    <IfModule sapi_apache2.c>
        AddType application/x-httpd-php .php
        AddType application/x-httpd-php-source .phps
    </IfModule>
</IfDefine>

<IfModule @PHP_MODULE@>
    # t/htdocs/php/arg.php et al require argc/argv in _SERVER
    <Directory @SERVERROOT@/htdocs/php>
       php_admin_flag "register_argc_argv" 1
    </Directory>

    <Directory @SERVERROOT@/htdocs/php/multiviews>
        Options MultiViews
    </Directory>

</IfModule>

##
## mod_expires test config
##

<IfModule mod_expires.c>
    <Directory @SERVERROOT@/htdocs/modules/expires>
        ExpiresActive On
        ExpiresDefault "modification plus \
                        10 years 6 months 2 weeks \
                        3 days 12 hours 30 minutes 19 seconds"
        ExpiresByType text/plain M60
        ExpiresByType image/gif A120
        ExpiresByType image/jpeg A86400
    </Directory>

    <Directory @SERVERROOT@/htdocs/modules/expires/htaccess>
        AllowOverride All
    </Directory>
</IfModule>

##
## mod_negotiation test config
##

<IfModule mod_mime.c>
    AddLanguage en .en
    AddLanguage fr .fr
    AddLanguage de .de
    AddLanguage fu .fu
    AddLanguage zh-TW .zh-TW
    AddHandler type-map .var
</IfModule>

<IfModule mod_negotiation.c>
    <IfDefine APACHE1>
        CacheNegotiatedDocs
    </IfDefine>

    <IfDefine APACHE2>
        CacheNegotiatedDocs On
    </IfDefine>

    <Directory @SERVERROOT@/htdocs/modules/negotiation/en>
        Options +MultiViews
        LanguagePriority en fr de fu zh-TW
    </Directory>

    <Directory @SERVERROOT@/htdocs/modules/negotiation/de>
        Options +MultiViews
        LanguagePriority de en fr fu zh-TW
    </Directory>

    <Directory @SERVERROOT@/htdocs/modules/negotiation/fr>
        Options +MultiViews
        LanguagePriority fr en de fu zh-TW
    </Directory>

    <Directory @SERVERROOT@/htdocs/modules/negotiation/fu>
        Options +MultiViews
        LanguagePriority fu fr en de zh-TW
    </Directory>

    <Directory @SERVERROOT@/htdocs/modules/negotiation/zh-TW>
        Options +MultiViews
        LanguagePriority zh-TW fr fu en de 
    </Directory>

   <IfDefine APACHE2>
       <IfModule @CGI_MODULE@>
            <Directory @SERVERROOT@/htdocs/modules/negotiation/query>
              Options +MultiViews +ExecCGI
              MultiviewsMatch any
              AddHandler cgi-script .pl
           </Directory>
       </IfModule>
   </IfDefine>

</IfModule>

##
## mod_rewrite test config
##

<IfModule mod_rewrite.c>
    RewriteEngine On
    <IfVersion < 2.3.6>
        RewriteLog @SERVERROOT@/logs/rewrite_log
        RewriteLogLevel 9
    </IfVersion>
    <IfVersion >= 2.3.6>
        LogLevel rewrite:trace8
    </IfVersion>

    <IfDefine !APACHE1>
        <IfVersion < 2.3.4>
            RewriteLock @SERVERROOT@/logs/rewrite_lock
        </IfVersion>
        <IfVersion >= 2.3.4>
            # mutex created automatically
            # config needed only if file-based mutexes are used and
            # default lock file dir is inappropriate
            # Mutex file:/path/to/lockdir rewrite-map
        </IfVersion>
    </IfDefine>
    <IfDefine APACHE1>
        RewriteLock @SERVERROOT@/logs/rewrite_lock
    </IfDefine>        
    RewriteMap numbers-txt txt:@SERVERROOT@/htdocs/modules/rewrite/numbers.txt
    RewriteMap numbers-rnd rnd:@SERVERROOT@/htdocs/modules/rewrite/numbers.rnd
    #RewriteMap numbers-dbm dbm:@SERVERROOT@/htdocs/modules/rewrite/numbers.dbm
    RewriteMap numbers-prg prg:@SERVERROOT@/htdocs/modules/rewrite/numbers.pl
    RewriteMap lower int:tolower

    <Directory @SERVERROOT@/htdocs/modules/rewrite>
        RewriteEngine On
        <IfVersion >= 2.5.0>
            RewriteOptions inherit LongURLOptimization
        </IfVersion>
        <IfVersion < 2.5.0>
            RewriteOptions inherit
        </IfVersion>

        RewriteRule ^forbidden$ - [F]
        RewriteRule ^gone$ - [G]
        RewriteRule ^perm$ - [R=permanent]
        RewriteRule ^temp$ - [R]
        RewriteRule ^test\.blah$ - [T=text/html]

        ## config for testing >=< conditions
        RewriteCond %{HTTP_ACCEPT} =lucky13
        RewriteRule ^$ lucky13.html [L]

        RewriteCond %{HTTP_ACCEPT} >6
        RewriteRule ^$ big.html [L]

        RewriteCond %{HTTP_ACCEPT} <1
        RewriteRule ^$ zero.html [L]

        ## config for testing rewrite maps
        RewriteCond %{HTTP_ACCEPT} ^(TXT|RND|DBM|PRG)$
        RewriteRule ^([1-6])$ - [C,E=MAPTYPE:${lower:%1}]
        RewriteCond %{ENV:MAPTYPE} =txt
        RewriteRule ^([1-6])$ ${numbers-txt:$1}.html [S=3]
        RewriteCond %{ENV:MAPTYPE} =rnd
        RewriteRule ^([1-6])$ ${numbers-rnd:$1}.html [S=2]
        RewriteCond %{ENV:MAPTYPE} =dbm
        RewriteRule ^([1-6])$ ${numbers-dbm:$1}.html [S=1]
        RewriteCond %{ENV:MAPTYPE} =prg
        RewriteRule ^([1-6])$ ${numbers-prg:$1}.html [L]

        ## Proxy pass-through
        RewriteRule ^proxy.html$ http://@SERVERNAME@:@PORT@/modules/rewrite/lucky13.html [L,P]

        ## Query-string append
        RewriteRule ^qsa.html$ @SERVERROOT@/htdocs/modules/cgi/env.pl?foo=bar [QSA,L]

        ## Proxy and QSA
        RewriteRule ^proxy-qsa.html$ http://@SERVERNAME@:@PORT@/modules/cgi/env.pl?foo=bar [QSA,L,P]

        ## Redirect, directory context
        RewriteRule ^redirect-dir.html$ http://@SERVERNAME@:@PORT@/foobar.html [L,R=301]

        # PR 58231: Vary header not added to the response if the RewriteCond/Rule
        # combination is in a directory context.
        # Vary:Host header must not also be returned in any case.
        RewriteCond %{HTTP_HOST} directory-domain
        RewriteRule vary3.html vary4.html [L]

        RewriteCond %{HTTP_USER_AGENT} directory-agent
        RewriteRule vary3.html vary4.html [L]

        RewriteCond %{HTTP:Accept} directory-accept [OR]
        RewriteCond %{HTTP_REFERER} directory-referer
        RewriteRule vary3.html vary4.html [L]
    </Directory>

    # PR 58231: Vary:Host header mistakenly added to the response
    RewriteCond %{HTTP_HOST} test1
    RewriteRule /modules/rewrite/vary1.html /modules/rewrite/vary2.html [L]

    RewriteCond %{HTTP:Host} test2
    RewriteRule /modules/rewrite/vary1.html /modules/rewrite/vary2.html [L]


    ### Proxy pass-through to env.pl
    RewriteRule ^/modules/rewrite/proxy2/(.*)$ http://@SERVERNAME@:@PORT@/modules/cgi/$1 [L,P]
    
    ### Pass-through conditional on QUERY_STRING
    RewriteCond %{QUERY_STRING} horse=trigger
    RewriteRule ^/modules/rewrite/proxy3/(.*)$ http://@SERVERNAME@:@PORT@/modules/cgi/$1 [L,P]

    ### Redirect, server context
    RewriteRule ^/modules/rewrite/redirect.html$ http://@SERVERNAME@:@PORT@/foobar.html [L,R=301]

    RewriteRule ^/modules/rewrite/cookie/$ - [CO=NAME3:VAL:localhost:86400:/0:secure:httponly]
    RewriteRule ^/modules/rewrite/cookie/0 - [CO=NAME3:VAL:localhost:86400:/0:secure:httponly:0]
    RewriteRule ^/modules/rewrite/cookie/false - [CO=NAME3:VAL:localhost:86400:/0:secure:httponly:false]
    RewriteRule ^/modules/rewrite/cookie/lax - [CO=NAME3:VAL:localhost:86400:/0:secure:httponly:lax]
    RewriteRule ^/modules/rewrite/cookie/none - [CO=NAME3:VAL:localhost:86400:/0:secure:httponly:none]
    RewriteRule ^/modules/rewrite/cookie/foo - [CO=NAME3:VAL:localhost:86400:/0:secure:httponly:foo]

   <VirtualHost cve_2011_3368_rewrite>
      DocumentRoot @SERVERROOT@/htdocs/modules/proxy
      RewriteEngine On
      RewriteRule (.*) http://localhost$1 [P]
   </VirtualHost>

   # PR60478: pathological rewrite expansion
   <IfVersion >= 2.4>
   <Location /modules/rewrite/pr60478-rewrite-loop>
      # This pair of RewriteRules will loop but should eventually 500 once we
      # reach LimitRequestLine * 2 bytes. (In this case, @limitrequestline@ * 2 = @limitrequestlinex2@.)
      RewriteRule ^(.*)X(.*)$ $1x$2
      # Don't run the test machine out of memory on failure, just stop the loop
      RewriteCond expr "util_strlen(%{REQUEST_FILENAME}) -le @limitrequestlinex2@"
      RewriteRule X - [N]
   </Location>
   </IfVersion>

</IfModule>


<IfModule mod_proxy.c>
   <VirtualHost proxy_http_reverse>
      DocumentRoot @SERVERROOT@/htdocs/modules/proxy
      ProxyPass /reverse/notproxy/ !
      ProxyPass /reverse/ http://@SERVERNAME@:@PORT@/
      ProxyPassReverse /reverse/ http://@SERVERNAME@:@PORT@/
      ProxyPassMatch ^/reverse-match/(.*)$ http://@SERVERNAME@:@PORT@/$1
      ProxyPassMatch ^/reverse-slash(/.*)?$ http://@SERVERNAME@:@PORT@$1
      ProxyPassReverseCookieDomain local remote
      ProxyPassReverseCookiePath /local /remote
      <IfVersion >= 2.4.7>
        ProxyPass /uds/ unix:/tmp/test-ptf.sock|http:
      </IfVersion>
      <Location /reverse/locproxy/>
         ProxyPass http://@SERVERNAME@:@PORT@/
      </Location>
      <IfModule mod_setenvif.c>
          SetEnvIf Request_URI "^/reverse/locproxy/index.html$" no-proxy
      </IfModule>
   </VirtualHost>

   <VirtualHost proxy_http_nofwd>
      <IfVersion >= 2.3.10>
         ProxyAddHeaders off
      </IfVersion>
      ProxyPass /reverse/ http://@SERVERNAME@:@PORT@/

      <Proxy "*">
         # Noop config to trigger merging bug.
         Require all granted
      </Proxy>
    </VirtualHost>

   <IfVersion >= 2.2.5>
      <VirtualHost cve_2011_3368>
         DocumentRoot @SERVERROOT@/htdocs/modules/proxy
         ProxyPassMatch (.*) http://@SERVERNAME@$1
      </VirtualHost>
   </IfVersion>
</IfModule>
  
##
## @ACCESS_MODULE@ test config
##

<IfModule @ACCESS_MODULE@>
    <Directory @SERVERROOT@/htdocs/modules/access/htaccess>
        AllowOverride Limit
    </Directory>
</IfModule>

##
## mod_cgi test config
##

<IfModule @CGI_MODULE@>
    AddHandler cgi-script .sh
    AddHandler cgi-script .pl
    ScriptLog @SERVERROOT@/logs/mod_cgi.log
    ScriptLogLength 40960
    ScriptLogBuffer 256

    <Directory @SERVERROOT@/htdocs/modules/cgi>
        Options +ExecCGI

        <IfDefine APACHE2>
            <Files acceptpathinfoon.sh>
                AcceptPathInfo on
            </Files>
            <Files acceptpathinfooff.sh>
                AcceptPathInfo off
            </Files>
            <Files acceptpathinfodefault.sh>
                AcceptPathInfo default
            </Files>
        </IfDefine>
    </Directory>
        
</IfModule>

##
## mod_alias test config
##

<IfModule mod_alias.c>
    Alias /alias @SERVERROOT@/htdocs/modules/alias
    Alias /bogu /bogus/path/to/nothing

    AliasMatch /ali([0-9]) @SERVERROOT@/htdocs/modules/alias/$1.html

    Redirect permanent /perm http://@SERVERNAME@:@PORT@/alias
    Redirect temp /temp http://@SERVERNAME@:@PORT@/alias
    Redirect seeother /seeother http://@SERVERNAME@:@PORT@/alias
    Redirect gone /gone
    Redirect 403 /forbid

    RedirectMatch permanent /p([0-9]) http://@SERVERNAME@:@PORT@/alias/$1.html
    RedirectMatch temp /t([0-9]) http://@SERVERNAME@:@PORT@/alias/$1.html
    RedirectMatch seeother /s([0-9]) http://@SERVERNAME@:@PORT@/alias/$1.html
    RedirectMatch gone /g([0-9])
    RedirectMatch 403 /f([0-9])

    RedirectTemp /temp2 http://@SERVERNAME@:@PORT@/alias/index.html
    RedirectPermanent /perm2 http://@SERVERNAME@:@PORT@/alias/index.html

    Redirect permanent /modules/alias/redirect-me http://@SERVERNAME@:@PORT@/modules/alias/5.html

    ScriptAlias /cgi @SERVERROOT@/htdocs/modules/alias
    ScriptAliasMatch /aliascgi-(.*) @SERVERROOT@/htdocs/modules/alias/$1

    <IfDefine APACHE2>
        <IfVersion >= 2.4.19>
            <LocationMatch /expr/ali(?<number>[0-9])>
                Alias @SERVERROOT@/htdocs/modules/alias/%{env:MATCH_NUMBER}.html
            </LocationMatch>
            <LocationMatch /expr/aliascgi-(?<suffix>.*)>
                ScriptAlias @SERVERROOT@/htdocs/modules/alias/%{env:MATCH_SUFFIX}
            </LocationMatch>
            <LocationMatch /expr/p(?<number>[0-9])>
                Redirect permanent http://@SERVERNAME@:@PORT@/alias/%{env:MATCH_NUMBER}.html
            </LocationMatch>
            <LocationMatch /expr/t(?<number>[0-9])>
                Redirect temp http://@SERVERNAME@:@PORT@/alias/%{env:MATCH_NUMBER}.html
            </LocationMatch>
            <LocationMatch /expr/s(?<number>[0-9])>
                Redirect seeother http://@SERVERNAME@:@PORT@/alias/%{env:MATCH_NUMBER}.html
            </LocationMatch>
            <LocationMatch /expr/g([0-9])>
                Redirect gone
            </LocationMatch>
            <LocationMatch /expr/f([0-9])>
                Redirect 403
            </LocationMatch>
        </IfVersion>
    </IfDefine>
</IfModule>


<IfVersion >= 2.5.1>
    <Location /redirect_relative/default>
        Redirect /out-default
    </Location>
    <Location /redirect_relative/on>
        RedirectRelative ON
        Redirect /out-on
    </Location>
    <Location /redirect_relative/off>
        RedirectRelative OFF
        Redirect /out-off
    </Location>
    <Location /redirect_relative/off/fail>
        Redirect fail-to-construct-url
    </Location>
</IfVersion>

Alias /manual @inherit_documentroot@/manual
<Location /manual>
    Order deny,allow
    Deny from all
    Allow from @servername@
</Location>

##
## mod_asis test config
##

<IfModule mod_asis.c>
    <Directory @SERVERROOT@/htdocs/modules/asis>
       AddHandler send-as-is asis
    </Directory>
</IfModule>

##
## mod_headers test config
##

<IfModule mod_headers.c>
    <Directory @SERVERROOT@/htdocs/modules/headers/htaccess>
        AllowOverride All
    </Directory>

    <Directory @SERVERROOT@/htdocs/modules/headers/ssl>
        AllowOverride All
    </Directory>

    <VirtualHost mod_headers>
        <Location /manual>
            Header add mod_headers_foo bar
        </Location>
    </VirtualHost>

    # Should match anything mapped to disk
    <DirectoryMatch ^>
      Header append DMMATCH1 1
    </DirectoryMatch>
</IfModule>

##
## mod_dir test config
##

<IfModule mod_dir.c>
    <Directory @SERVERROOT@/htdocs/modules/dir/htaccess>
        DirectorySlash OFF
    </Directory>
  <IfVersion >= 2.5.1>
    <Directory @SERVERROOT@/htdocs/modules/dir/htaccess/sub>
        DirectorySlash NotFound
    </Directory>
  </IfVersion>
    <Directory @SERVERROOT@/htdocs/modules/dir/htaccess>
        AllowOverride Indexes
    </Directory>
</IfModule>

##
## mod_env test config
##

<IfModule mod_env.c>
    PassEnv APACHE_TEST_HOSTNAME
    SetEnv ENV_TEST "mod_env test environment variable"
    SetEnv ENV_TEST_EMPTY
    UnsetEnv UNSET

    PassEnv APACHE_TEST_HOSTTYPE
    UnsetEnv APACHE_TEST_HOSTTYPE

    SetEnv NOT_HERE "this will not be here"
    UnsetEnv NOT_HERE

    <Directory @SERVERROOT@/htdocs/modules/env>
        Options +Includes
    </Directory>
</IfModule>

##
## mod_setenvif test config
##

<IfModule mod_setenvif.c>
    <Directory @SERVERROOT@/htdocs/modules/setenvif/htaccess>
        Options +Includes
        AllowOverride All
    </Directory>
</IfModule>

##
## mod_dav test config
##

<IfModule mod_dav.c>
    <IfVersion < 2.5.1>
      DAVLockDB @SERVERROOT@/logs/davlock.db
    </IfVersion>

    <Directory @SERVERROOT@/htdocs/modules/dav>
        DAV On
    </Directory>
</IfModule>

##
## mod_autoindex test config
##

<IfModule mod_autoindex.c>
    <Directory @SERVERROOT@/htdocs/modules/autoindex/htaccess>
        Options +Indexes
        AllowOverride Indexes
    </Directory>
    <Directory @SERVERROOT@/htdocs/modules/autoindex2>
        Options +Indexes
        AllowOverride  All
    </Directory>
</IfModule>

##
## LimitRequest* directive testing
##

LimitRequestLine      @limitrequestline@
LimitRequestFieldSize 1024
LimitRequestFields    32
<Directory @SERVERROOT@/htdocs/apache/limits>
    LimitRequestBody  65536
</Directory>

##
## mod_echo test config
##

<IfModule mod_echo.c>
    <VirtualHost mod_echo>
        ProtocolEcho On
    </VirtualHost>

    <IfModule @ssl_module@>
        <VirtualHost mod_echo_ssl>
            ProtocolEcho On
            SSLEngine On
        </VirtualHost>
    </IfModule>
</IfModule>

##
## mod_deflate test config
## 
<IfDefine APACHE2>
    <IfModule mod_deflate.c>
        <Directory @SERVERROOT@/htdocs/modules/deflate>
            SetOutputFilter DEFLATE
        </Directory> 

        <Directory @SERVERROOT@/htdocs/modules/deflate/ssi>
            Options +Includes
            DirectoryIndex default.html
            AddOutputFilter INCLUDES shtml
            SetOutputFilter DEFLATE
        </Directory> 

        <IfModule mod_bucketeer.c>
            <Directory @SERVERROOT@/htdocs/modules/deflate/bucketeer>
                SetOutputFilter BUCKETEER;DEFLATE
            </Directory> 
        </IfModule>


        <Location /modules/cgi/not-modified.pl>
            SetOutputFilter DEFLATE
        </Location> 

        <Location /modules/deflate/echo_post>
            SetInputFilter DEFLATE
            SetHandler echo_post
        </Location>
    </IfModule>
</IfDefine>

### pr17629.t
<IfModule mod_case_filter.c>
    <Location /modules/cgi/redirect.pl>
        SetOutputFilter CASEFILTER
    </Location> 
</IfModule>


##
## Test config for security issues
##
<Directory @SERVERROOT@/htdocs/security>
    Options +Includes
    AllowOverride All
    Order allow,deny
    Allow from all

    # for CVE-2005-3352 test:
    AddHandler imap-file map
</Directory>

<Directory @SERVERROOT@/htdocs/security/CAN-2004-0811>
    Options +Indexes
</Directory>

<Directory @SERVERROOT@/htdocs/security/CAN-2004-0811/sub>
    Satisfy Any
</Directory>

##
## Digest test config
##
<IfDefine APACHE2>
    <IfModule mod_auth_digest.c>
        Alias /digest @DocumentRoot@
        <Location /digest>
            Require valid-user
            AuthType Digest
            AuthName realm1
            # 2.0
            <IfModule mod_auth.c>
                AuthDigestFile @ServerRoot@/realm1
            </IfModule>
            # 2.1
            <IfModule mod_authn_file.c>
                AuthUserFile realm1
            </IfModule>
       </Location>
       SetEnvIf X-Browser "MSIE" AuthDigestEnableQueryStringHack=On
    </IfModule>
</IfDefine>

##
## authz_core test config: authz by user or by env (modules/aaa.t)
##
<IfDefine APACHE2>
    <IfModule mod_authz_core.c>
    <IfModule mod_authn_core.c>
    <IfModule mod_authn_file.c>
    <IfModule mod_authz_host.c>
        <IfModule mod_auth_digest.c>
            Alias /authz/digest @DocumentRoot@
            <Location /authz/digest>
                <RequireAny>
                    Require valid-user
                    Require env allowed
                </RequireAny>
                AuthType Digest
                AuthName realm2
                AuthUserFile realm2
           </Location>
        </IfModule>
        <IfModule mod_auth_basic.c>
            Alias /authz/basic @DocumentRoot@
            <Location /authz/basic>
                <RequireAny>
                    Require valid-user
                    Require env allowed
                </RequireAny>
                AuthType Basic
                AuthName basic1
                AuthUserFile basic1
           </Location>
        </IfModule>
        <IfVersion >= 2.3.11>
          <IfModule mod_auth_basic.c>
            Alias /authz/fail/401 @DocumentRoot@
            Alias /authz/fail/403 @DocumentRoot@
            <Location /authz/fail>
                Require user foo
                AuthType Basic
                AuthName basic1
                AuthUserFile basic1
           </Location>
           <Location /authz/fail/403>
                AuthzSendForbiddenOnFailure On
           </Location>
          </IfModule>
        </IfVersion>
        <IfModule mod_auth_form.c>
        <IfModule mod_session_cookie.c>
            Alias /authz/form @DocumentRoot@
            <Location /authz/form>
                AuthFormLoginRequiredLocation http://@SERVERNAME@:@PORT@/authz/login.html
                AuthFormLoginSuccessLocation  http://@SERVERNAME@:@PORT@/authz/form/
                AuthFormProvider file
                AuthType Form
                AuthUserFile form1
                AuthName form1
                Session On
                SessionCookieName session path=/
                <RequireAny>
                    Require valid-user
                    Require env allowed
                </RequireAny>
            </Location>
            <Location /authz/form/dologin.html>
                SetHandler form-login-handler
                Require all granted
            </Location>
        </IfModule>
        </IfModule>
       SetEnvIf X-Allowed "yes" allowed
    </IfModule>
    </IfModule>
    </IfModule>
    </IfModule>
</IfDefine>

##
## authz_core test config: authz merging (modules/authz_core.t)
##
<IfDefine APACHE2>
    <IfModule mod_authz_core.c>
    <IfModule mod_authn_core.c>
    <IfModule mod_authz_host.c>
       <Directory @DocumentRoot@/authz_core/>
          AllowOverride all
       </Directory>

       SetEnvIf X-Allowed1 "yes" allowed1
       SetEnvIf X-Allowed2 "yes" allowed2
       SetEnvIf X-Allowed3 "yes" allowed3
       SetEnvIf X-Allowed4 "yes" allowed4
    </IfModule>
    </IfModule>
    </IfModule>
</IfDefine>

##
## Configuration for t/modules/ldap.t.
##
<IfDefine LDAP>
  Alias /modules/ldap/simple @DocumentRoot@
  Alias /modules/ldap/group @DocumentRoot@
  Alias /modules/ldap/refer @DocumentRoot@

  # Simple user lookup
  <Location /modules/ldap/simple>
     AuthLDAPURL "ldap://localhost:8389/dc=example,dc=com?uid"
     AuthLDAPBindDN "cn=httpd,dc=example,dc=com"
     AuthLDAPBindPassword mod_authnz_ldap
     AuthType Basic
     AuthName ldap-simple@httpd.apache.org
     AuthBasicProvider ldap
     Require valid-user
  </Location>
  # Static group configuration
  <Location /modules/ldap/group>
     AuthLDAPURL "ldap://localhost:8389/dc=example,dc=com?uid"
     AuthLDAPBindDN "cn=httpd,dc=example,dc=com"
     AuthLDAPBindPassword mod_authnz_ldap
     AuthType Basic
     AuthName ldap-group@httpd.apache.org
     AuthBasicProvider ldap
     Require ldap-group cn=Group One,dc=example,dc=com
  </Location>
  # Referral configuration -- the second user is only found if
  # httpd follows the referral.
  <Location /modules/ldap/refer>
     AuthLDAPURL "ldap://localhost:8389/dc=example,dc=com?uid"
     AuthLDAPBindDN "cn=httpd,dc=example,dc=com"
     AuthLDAPBindPassword mod_authnz_ldap
     AuthType Basic
     AuthName ldap-refer@httpd.apache.org
     AuthBasicProvider ldap
     Require ldap-group cn=Subgroup,ou=dept,dc=example,dc=com
  </Location>
</IfDefine>

##
## ErrorDocument handling
## create it's own virtual host so it doesn't interfere
## with other tests for 404 messages
## 
<VirtualHost _default_:error_document>
    ErrorDocument 404 "per-server 404
                                                                                                                             
    <Location /redefine>
        ErrorDocument 404 "per-dir 404
    </Location>
                                                                                                                             
    <Location /inherit>
        # nothing here
    </Location>

    <Location /bounce>
        ErrorDocument 404 /modules/expires/expire.html
    </Location>

    <Location /restore>
        # special "default" value = restore canned error response
        ErrorDocument 404 default
    </Location>

    <Directory @DocumentRoot@/apache>
         ErrorDocument 404 "testing merge
    </Directory>
                                                                                                                             
    <Directory @DocumentRoot@/apache/etag>
         # 404 should be inherited from /apache
         ErrorDocument 500 "hmph
    </Directory>

</VirtualHost>

<Directory @DocumentRoot@/modules/filter/byterange/pr61860>
    Header always set TestDuplicateHeader  "shouldnotbeduplicated"
</Directory>

<IfModule mod_bucketeer.c>
   <Directory @DocumentRoot@/apache/chunked>
       SetOutputFilter BUCKETEER
   </Directory>
</IfModule>

<IfModule mod_status.c>
   ExtendedStatus On
</IfModule>

<IfModule mod_filter.c>
   <IfModule mod_case_filter.c>
      <Location /modules/cgi/xother.pl>
        FilterDeclare xother CONTENT_SET
        <IfVersion >= 2.3.9>
          FilterProvider xother CASEFILTER "resp('X-Foo') == 'bar'"
        </IfVersion>
        <IfVersion < 2.3.0>
          FilterProvider xother CASEFILTER resp=X-Foo bar
        </IfVersion>
        FilterChain xother
      </Location>
   </IfModule>

   <Directory @SERVERROOT@/htdocs/modules/filter/pr49328>
       Options +Includes
       AddType text/html .shtml
       AddOutputFilter INCLUDES .shtml

       <IfModule mod_deflate.c>
         FilterDeclare pr49328 CONTENT_SET
         <IfVersion < 2.3.0> 
            FilterProvider pr49328 DEFLATE resp=Content-Type $text/
         </IfVersion>
         <IfVersion >= 2.3.0>
           <IfVersion < 2.3.9>
              FilterProvider pr49328 DEFLATE "$content-type = /text\//"
           </IfVersion>
         </IfVersion>
         <IfVersion >= 2.3.9>
            FilterProvider pr49328 DEFLATE "%{CONTENT_TYPE} =~ m!text/!"
         </IfVersion>
         FilterChain pr49328
       </IfModule>
   </Directory>
   <Directory @SERVERROOT@/htdocs/modules/filter/bytype>
      <IfModule mod_deflate.c>
        AddOutputFilterByType DEFLATE application/xml
        AddOutputFilterByType DEFLATE text/xml
        AddOutputFilterByType DEFLATE text/css
      </IfModule>
      <IfModule mod_case_filter.c>
        AddOutputFilterByType CASEFILTER application/xml
        AddOutputFilterByType CASEFILTER text/xml
        AddOutputFilterByType CASEFILTER text/plain
      </IfModule>
   </Directory>
</IfModule>

##
## mod_dumpio configuration
##
<IfModule mod_dumpio.c>
	DumpIOInput on
	DumpIOOutput on
	LogLevel dumpio:trace7
</IfModule>

##
## LogLevel configuration
##
<IfDefine APACHE2>
   <IfVersion >= 2.3.6>
      <Directory @SERVERROOT@/htdocs/apache/loglevel/core_crit>
         LogLevel info core:crit
      </Directory>         
      <Directory @SERVERROOT@/htdocs/apache/loglevel/core_info>
         LogLevel crit core:info
      </Directory>         
      <Directory @SERVERROOT@/htdocs/apache/loglevel/crit>
         LogLevel crit
      </Directory>         
      <Directory @SERVERROOT@/htdocs/apache/loglevel/crit/core_info>
         LogLevel core:info
      </Directory>         
      <Directory @SERVERROOT@/htdocs/apache/loglevel/crit/core_info/crit>
         LogLevel crit
      </Directory>         
      <Directory @SERVERROOT@/htdocs/apache/loglevel/info>
         LogLevel info
      </Directory>         
      <Directory @SERVERROOT@/htdocs/apache/loglevel/info/core_crit>
         LogLevel core:crit
      </Directory>         
      <Directory @SERVERROOT@/htdocs/apache/loglevel/info/core_crit/info>
         LogLevel info
      </Directory>         
   </IfVersion>
</IfDefine>

<Directory @SERVERROOT@/htdocs/apache/cfg_getline/>
    AllowOverride All
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    Options +Includes
</Directory>

<Directory @SERVERROOT@/htdocs/modules/substitute/>
    AllowOverride All
</Directory>

##
## expression parser test config
##

<IfVersion >= 2.3.9>
    <Directory @SERVERROOT@/htdocs/apache/expr/>
        AllowOverride All
        <IfModule mod_log_debug.c>
	  AllowOverrideList LogMessage
        </IfModule>
    </Directory>
</IfVersion>

<IfDefine APACHE2>
  <IfVersion >= 2.3.11>
    <IfModule mod_headers.c>
    <IfModule mod_proxy.c>
       ProxyPass /if_sec/proxy/ http://@SERVERNAME@:@PORT@/

       # Directory context
       <Directory @SERVERROOT@/htdocs/if_sec/dir/>
         <If "-n %{REQ:In-If1}">
           Header merge Out-Trace dir1
             <If "-n %{REQ:In-If11}">
               Header merge Out-Trace nested11
               <If "-n %{REQ:In-If111}">
                 Header merge Out-Trace nested111
               </If>
               <Elseif "-n %{REQ:In-If112}">
                 Header merge Out-Trace nested112
               </Elseif>
               <Else>
                 Header merge Out-Trace nested113
               </Else>
             </If>
         </If>
         <If "-n %{REQ:In-If2}">
           Header merge Out-Trace dir2
         </If>
         <Files *.txt>
           <If "-n %{REQ:In-If1}">
             Header merge Out-Trace dir_files1
           </If>
         </Files>
       </Directory>

       # Location context
       <Location /if_sec/proxy/>
         <If "-n %{REQ:In-If1}">
           Header merge Out-Trace locp1
         </If>
         <If "-n %{REQ:In-If2}">
           Header merge Out-Trace locp2
         </If>
       </Location>
       <Location /if_sec/loc/>
         <If "-n %{REQ:In-If1}">
           Header merge Out-Trace loc1
           <If "-n %{REQ:In-If11}">
             Header merge Out-Trace nested11
             <If "-n %{REQ:In-If111}">
               Header merge Out-Trace nested111
             </If>
             <Elseif "-n %{REQ:In-If112}">
               Header merge Out-Trace nested112
             </Elseif>
             <Else>
               Header merge Out-Trace nested113
             </Else>
           </If>
         </If>
         <If "-n %{REQ:In-If2}">
           Header merge Out-Trace loc2
         </If>
       </Location>

       # Files context
       <Files *.if_test>
         <If "-n %{REQ:In-If2}">
           Header merge Out-Trace files2
           <If "-n %{REQ:In-If11}">
             Header merge Out-Trace nested11
             <If "-n %{REQ:In-If111}">
               Header merge Out-Trace nested111
             </If>
             <Elseif "-n %{REQ:In-If112}">
               Header merge Out-Trace nested112
             </Elseif>
             <Else>
               Header merge Out-Trace nested113
             </Else>
           </If>
         </If>
       </Files>

       # Global context
       <If "-n %{REQ:In-If1}">
         Header merge Out-Trace global1
         <If "-n %{REQ:In-If11}">
           Header merge Out-Trace nested11
           <If "-n %{REQ:In-If111}">
             Header merge Out-Trace nested111
           </If>
           <Elseif "-n %{REQ:In-If112}">
             Header merge Out-Trace nested112
           </Elseif>
           <Else>
             Header merge Out-Trace nested113
           </Else>
         </If>
       </If>
    </IfModule>
    </IfModule>
  </IfVersion>
</IfDefine>

<IfDefine APACHE2>
  <IfVersion >= 2.3.15>
    <IfModule mod_alias.c>
      AliasMatch /maxranges/([^/])+/ @SERVERROOT@/htdocs/apache/chunked/byteranges.txt
      <Location /maxranges/none/>
        MaxRanges none
      </Location>
      <Location /maxranges/default-explicit/>
        MaxRanges default
      </Location>
      <Location /maxranges/1/>
        MaxRanges 1
      </Location>
      <Location /maxranges/2/>
        MaxRanges 2
      </Location>
      <Location /maxranges/1/merge/none/>
        MaxRanges none
      </Location>
      <Location /maxranges/unlimited/>
        MaxRanges unlimited
      </Location>
    </IfModule>
  </IfVersion>
  <IfVersion >= 2.2.21>
    <IfModule mod_alias.c>
      AliasMatch /maxranges/([^/])+/ @SERVERROOT@/htdocs/apache/chunked/byteranges.txt
      <Location /maxranges/none/>
        MaxRanges none
      </Location>
      <Location /maxranges/default-explicit/>
        MaxRanges default
      </Location>
      <Location /maxranges/1/>
        MaxRanges 1
      </Location>
      <Location /maxranges/2/>
        MaxRanges 2
      </Location>
      <Location /maxranges/1/merge/none/>
        MaxRanges none
      </Location>
      <Location /maxranges/unlimited/>
        MaxRanges unlimited
      </Location>
    </IfModule>
  </IfVersion>

</IfDefine>

<IfModule mod_lua.c>
   AddHandler lua-script .lua 
   LuaHookTranslateName @SERVERROOT@/htdocs/modules/lua/translate.lua translate_name
   <Location /modules/lua/translate-inherit-after>
     LuaHookTranslateName @SERVERROOT@/htdocs/modules/lua/translate.lua translate_name2
     LuaInherit parent-last
   </Location>
   <Location /modules/lua/translate-inherit-before>
     LuaHookTranslateName @SERVERROOT@/htdocs/modules/lua/translate.lua translate_name2
     LuaInherit parent-first
   </Location>
   <Location /modules/lua/translate-inherit-default-before>
     LuaHookTranslateName @SERVERROOT@/htdocs/modules/lua/translate.lua translate_name2
     # default: LuaInherit parent-first
   </Location>

   # Filtering tests
   LuaOutputFilter LUA_OUTPUT @SERVERROOT@/htdocs/modules/lua/filters.lua output_filter
   Alias /modules/lua/filtered @DocumentRoot@
   <Location /modules/lua/filtered/>
      SetOutputFilter LUA_OUTPUT
   </Location>
   
</IfModule>

# 
# Strict HTTP mode test config
#
<IfDefine APACHE2>
  <IfVersion >= 2.2.32>
    <Directory @SERVERROOT@/htdocs/apache/http_strict>
      Options +ExecCGI
      AddHandler cgi-script .pl
    </Directory>
    <VirtualHost _default_:http_unsafe>
      DocumentRoot @SERVERROOT@/htdocs/
      HttpProtocolOptions Unsafe Allow0.9
      <IfModule mod_headers.c>
        <Location /regression-header>
          # Use two examples to ensure multiple bad headers are caught
          # Note the vertical tab (^K or 0x0B) embedded in the header value
          Header always set X-Bad "verticaltab"
          Header always set X?Bad "badly named header"
        </Location>
      </IfModule>
   </VirtualHost>
   <VirtualHost _default_:http_strict>
      DocumentRoot @SERVERROOT@/htdocs/
      HttpProtocolOptions Strict Require1.0 RegisteredMethods
      <IfModule mod_headers.c>
        <Location /regression-header>
          # Use two examples to ensure multiple bad headers are caught
          # Note the vertical tab (^K or 0x0B) embedded in the header value
          Header always set X-Bad "verticaltab"
          Header always set X?Bad "badly named header"
        </Location>
      </IfModule>
   </VirtualHost>
  </IfVersion>
</IfDefine>

#
# mod_brotli test config
#
<IfDefine APACHE2>
  <IfModule mod_alias.c>
    <IfModule mod_brotli.c>
        # Reuse existing data for mod_deflate
        Alias /only_brotli @SERVERROOT@/htdocs/modules/deflate
        <Location /only_brotli>
          SetOutputFilter BROTLI_COMPRESS
        </Location>

        <IfModule mod_deflate.c>
          Alias /brotli_and_deflate @SERVERROOT@/htdocs/modules/deflate
          <Location /brotli_and_deflate>
            SetOutputFilter BROTLI_COMPRESS;DEFLATE
          </Location>
        </IfModule>
    </IfModule>
  </IfModule>
</IfDefine>

#
# <IfFile> test config (see t/apache/iffile.t)
#
<IfDefine APACHE2>
  <IfVersion >= 2.4.34>
  <IfModule mod_headers.c>

    <Location /apache/iffile>
      # First, the IfFiles that should succeed.
      <IfFile htdocs/apache/iffile/document>
        Header merge X-Out success1
      </IfFile>
      <IfFile !htdocs/apache/iffile/doesnotexist>
        Header merge X-Out success2
      </IfFile>
      <IfFile htdocs/apache/iffile>
        Header merge X-Out success3
      </IfFile>
      <IfFile @SERVERROOT@/htdocs/apache/iffile/document>
        Header merge X-Out success4
      </IfFile>
      <IfFile "htdocs/apache/iffile/document">
        Header merge X-Out success5
      </IfFile>
      # Followed by the IfFiles that should fail.
      <IfFile !htdocs/apache/iffile/document>
        Header merge X-Out fail1
      </IfFile>
      <IfFile htdocs/apache/iffile/doesnotexist>
        Header merge X-Out fail2
      </IfFile>
      <IfFile !htdocs/apache/iffile>
        Header merge X-Out fail3
      </IfFile>
      <IfFile !@SERVERROOT@/htdocs/apache/iffile/document>
        Header merge X-Out fail4
      </IfFile>
      <IfFile !"htdocs/apache/iffile/document">
        Header merge X-Out fail5
      </IfFile>
    </Location>

  </IfModule>
  </IfVersion>
</IfDefine>


#
# t/modules/ext_filter.t test config
#
<IfDefine APACHE2>
  <IfModule mod_ext_filter.c>
    ExtFilterDefine foo-to-bar mode=output cmd="@SERVERROOT@/htdocs/modules/ext_filter/eval-cmd.pl s,foo,bar,g"
    ExtFilterDefine ifoo-to-bar mode=input cmd="@SERVERROOT@/htdocs/modules/ext_filter/eval-cmd.pl s,foo,bar,g"
    ExtFilterDefine sleepy-cat-out mode=output cmd=@SERVERROOT@/htdocs/modules/ext_filter/sleepycat.pl
    ExtFilterDefine sleepy-cat-in mode=input cmd=@SERVERROOT@/htdocs/modules/ext_filter/sleepycat.pl
    AliasMatch /apache/extfilter/[^/]+/(.*) @DocumentRoot@/$1

    <Location /apache/extfilter/out-foo>
       SetOutputFilter foo-to-bar
    </Location>

    <Location /apache/extfilter/out-slow>
       SetOutputFilter sleepy-cat-out
    </Location>

    <Location /apache/extfilter/in-foo>
       SetInputFilter ifoo-to-bar
    </Location>

    <Location /apache/extfilter/out-limit>
       SetOutputFilter foo-to-bar
       LimitRequestBody 6
    </Location>

</IfModule>
</IfDefine>

##
## mod_ssl_ct configuration
##
<IfModule mod_ssl_ct.c>
  # If mod_ssl_ct is loaded, CTSCTStorage is needed to pass the configtest.
  CTSCTStorage .
</IfModule>

##
## mod_remote_ip configuration
##
<IfModule mod_remoteip.c>
   <VirtualHost remote_ip>
      DocumentRoot @SERVERROOT@/htdocs/modules/remoteip
      <IfVersion >= 2.4.30>
        RemoteIPProxyProtocol On
      </IfVersion>
   </VirtualHost>
</IfModule>


<IfModule mod_ratelimit.c>
   AliasMatch ^/apache/ratelimit/autoindex/$ @SERVERROOT@/htdocs/
   AliasMatch ^/apache/ratelimit/$ @SERVERROOT@/htdocs/index.html
   <Location /apache/ratelimit/>
       Options +Indexes
       SetOutputFilter RATE_LIMIT
       <IfModule mod_env.c>
           SetEnv rate-limit 1024
           SetEnv rate-initial-burst 512
       </IfModule>
   </Location>
   <Location /apache/ratelimit/chunk>
      SetHandler random_chunk
   </Location>
</IfModule>

<IfModule mod_reflector.c>
   <Location /apache/reflector_nodeflate/>
       SetHandler reflector
       # Do not set any filter
       ReflectorHeader header2reflect
       ReflectorHeader header2update header2updateUpdated
   </Location>
   <Location /apache/reflector_deflate/>
       SetHandler reflector
       SetOutputFilter DEFLATE
       ReflectorHeader header2reflect
       ReflectorHeader header2update header2updateUpdated
   </Location>
</IfModule>

<IfModule mod_allowmethods.c>
    <Directory @SERVERROOT@/htdocs/modules/allowmethods>
        Options +Indexes
    </Directory>
    <IfVersion >= 2.5.1>
        <Directory @SERVERROOT@/htdocs/modules/allowmethods/NoPost>
            AllowMethods -POST
        </Directory>
    </IfVersion>
    <Directory @SERVERROOT@/htdocs/modules/allowmethods/Get>
        AllowMethods GET
    </Directory>
    <IfVersion >= 2.5.1>
        <Directory @SERVERROOT@/htdocs/modules/allowmethods/Get/post>
            AllowMethods +POST
        </Directory>
        <Directory @SERVERROOT@/htdocs/modules/allowmethods/Get/none>
            AllowMethods -GET
        </Directory>
    </IfVersion>
    <Directory @SERVERROOT@/htdocs/modules/allowmethods/Head>
        AllowMethods HEAD
    </Directory>
    <Directory @SERVERROOT@/htdocs/modules/allowmethods/Post>
        AllowMethods POST
    </Directory>
    <Directory @SERVERROOT@/htdocs/modules/allowmethods/Post/reset>
        AllowMethods reset
    </Directory>
</IfModule>

<IfModule mod_buffer.c>
   <IfModule mod_reflector.c>
      <Location /apache/buffer_in/>
          SetHandler reflector
          SetInputFilter BUFFER
      </Location>
      <Location /apache/buffer_out/>
          SetHandler reflector
          SetOutputFilter BUFFER
      </Location>
      <Location /apache/buffer_in_out/>
          SetHandler reflector
          SetInputFilter BUFFER
          SetOutputFilter BUFFER
      </Location>
   </IfModule>
</IfModule>

<IfModule mod_data.c>
   <Directory @SERVERROOT@/htdocs/modules/data/>
      SetOutputFilter DATA
   </Directory>
</IfModule>

<IfModule mod_usertrack.c>
   <Directory @SERVERROOT@/htdocs/modules/usertrack/>
      CookieTracking on
      CookieName usertrack_test
      CookieExpires "60 seconds"
   </Directory>
</IfModule>

<IfModule mod_session_cookie.c>
    <Directory @SERVERROOT@/htdocs/modules/session_cookie>
        Session On
        SessionCookieName thisisatest path=/
        SessionMaxAge 1
    </Directory>
</IfModule>

<IfModule mod_speling.c>
   <Directory @SERVERROOT@/htdocs/modules/speling/nocase/>
      CheckSpelling on
   </Directory>
   <Directory @SERVERROOT@/htdocs/modules/speling/caseonly/>
      CheckSpelling on
      CheckCaseOnly on
   </Directory>
</IfModule>

<IfModule mod_actions.c>
   ScriptAlias /cgi_mod_actions @SERVERROOT@/htdocs/modules/cgi
   <Location /mod_actions>
    	SetHandler my-handler
	Action my-handler "/cgi_mod_actions/perl_echo.pl" virtual
   </Location>

   <Directory @SERVERROOT@/htdocs/modules/actions/action>
   	AddHandler my-file-type1 .xyz1
	Action my-file-type1 "/cgi_mod_actions/perl_echo.pl"
   	AddHandler my-file-type2 .xyz2
	Action my-file-type2 "/cgi_mod_actions/perl_echo.pl" virtual
   </Directory>

   <Directory @SERVERROOT@/htdocs/modules/actions/script>
   	Script GET  "/cgi_mod_actions/perl_echo.pl"  
   	Script POST "/cgi_mod_actions/perl_post.pl"  
   </Directory>
</IfModule>

<IfModule mod_heartbeat.c>
	<IfModule mod_heartmonitor.c>
		HeartbeatListen 239.0.0.1:27999
		HeartbeatAddress 239.0.0.1:27999
	</IfModule>
</IfModule>

#
# t/modules/sed.t test config
#
<IfModule mod_sed.c>
  AliasMatch /apache/sed/[^/]+/(.*) @DocumentRoot@/$1

  <Location /apache/sed/>
    AddOutputFilter sed .html
  </Location>

  <Location /apache/sed/out-foo>
      OutputSed "s/foo/bar/g"
  </Location>
</IfModule>