This repository has been archived by the owner on Apr 21, 2023. It is now read-only.
/
debug.conf.template
2027 lines (1779 loc) · 83.6 KB
/
debug.conf.template
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
# Port map:
# 8080 -- master configuration.
# 8081 -- LOADTEST / PROXY / SLURP
# 8082 -- SLURP
# @@APACHE_SECONDARY_PORT@@ -- secondary configuration (8083 debug, 8084 root)
# 8085 --- loopback route testing
#
# Note that when system-testing on CentOS installs we need to authorize these
# ports via semanage. Any new ports should thus be added to the Makefile in
# this directory, target enable_ports_and_file_access.
# We don't enable XHTML in the default pagespeed.conf. For the
# add_instrumentation xhtml tests to work, though, we have to enable
# it here. If we change pagespeed.conf.template to enable XHTML by
# default then we can eliminate this line.
AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER application/xhtml+xml
# Do testing using memcached in lieu of the file cache.
#MEMCACHED ModPagespeedMemcachedServers localhost:@@MEMCACHED_PORT@@
# When testing memcached in system tests, let's make sure we are really
# hitting it and not servicing the lookups in-memory. Note that we will
# cover having a non-zero lru-cache with memcached in load tests.
#MEMCACHED ModPagespeedLRUCacheKbPerProcess 0
# If X-PSA-Blocking-Rewrite request header is present and its value matches the
# value of ModPagespeedBlockingRewriteKey below, the response will be fully
# rewritten before being flushed to the client.
ModPagespeedBlockingRewriteKey psatest
# By default we test without image beaconing, and use a separate vhost to
# enable image beaconing explicitly.
ModPagespeedCriticalImagesBeaconEnabled false
# By default, resources will not be used for inlining without explicit
# authorization. Supported values are off or a comma-separated list of strings
# from {Script,Stylesheet}.
ModPagespeedInlineResourcesWithoutExplicitAuthorization off
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/max_html_parse_size" >
ModPagespeedMaxHtmlParseBytes 5000
</Directory>
# This will cause an error report in the startup log if mod_pagespeed is not
# built with ssl, but otherwise will cause no trouble.
ModPagespeedFetchHttps enable
ModPagespeedLibrary 43 1o978_K0_LNE5_ystNklf http://www.modpagespeed.com/rewrite_javascript.js
ModPagespeedRetainComment " google_ad_section*"
# Test proxying of non-.pagespeed. resources.
ModPagespeedMapProxyDomain http://@@APACHE_DOMAIN@@/modpagespeed_http \
http://@@PAGESPEED-TEST-HOST@@/do_not_modify
ModPagespeedMapProxyDomain http://@@APACHE_DOMAIN@@/content_type_present \
http://@@PAGESPEED-TEST-HOST@@:8091
ModPagespeedMapProxyDomain http://@@APACHE_DOMAIN@@/content_type_absent \
http://@@PAGESPEED-TEST-HOST@@:8092
# Turn on "KeepAlive" so we can test it in system_test.sh.
KeepAlive On
KeepAliveTimeout 60
LogFormat "%v %X %P %h %l %u %t \"%r\" %>s %b" common
# Set logging level to 'info' to catch some informational messages which have
# been downgraded from 'error'.
LogLevel info
ModPagespeedStaticAssetPrefix /mod_pagespeed_static/
# We want to test some vhosts without a shared memory cache configured, and if
# the default shared memory metadata cache is enabled we can't do that. So
# disable it globally and enable it where we need it.
ModPagespeedDefaultSharedMemoryCacheKB 0
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/https_fetch" >
ModPagespeedDisableFilters inline_images
ModPagespeedDomain https://@@PAGESPEED-TEST-HOST@@
ModPagespeedMapProxyDomain http://@@APACHE_DOMAIN@@/https_gstatic_dot_com \
https://www.gstatic.com/psa/static
</Directory>
# These caching headers are set up for the document root, and
# also serve as a demonstration of good values to set for the entire
# site, if it is to be optimized by mod_pagespeed.
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_example" >
<IfModule headers_module>
# To enable to show that mod_pagespeed to rewrites web pages, we must
# turn off Etags for HTML files and eliminate caching altogether.
# mod_pagespeed should rewrite HTML files each time they are served.
# The first time mod_pagespeed sees an HTML file, it may not optimize
# it fully. It will optimize better after the second view. Caching
# defeats this behavior.
<FilesMatch "\.(html|htm)$">
Header unset Etag
Header set Cache-control "max-age=0, no-cache"
</FilesMatch>
# Images, styles, and javascript are all cache-extended for
# a year by rewriting URLs to include a content hash. mod_pagespeed
# can only do this if the resources are cacheable in the first place.
# The origin caching policy, set here to 10 minutes, dictates how
# frequently mod_pagespeed must re-read the content files and recompute
# the content-hash. As long as the content doesn't actually change,
# the content-hash will remain the same, and the resources stored
# in browser caches will stay relevant.
<FilesMatch "\.(jpg|jpeg|gif|png|js|css)$">
Header unset Etag
Header set Cache-control "max-age=600"
</FilesMatch>
</IfModule>
</Directory>
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/shard" >
ModPagespeedShardDomain "@@APACHE_DOMAIN@@" shard1,shard2
ModPagespeedRewriteLevel PassThrough
ModPagespeedEnableFilters extend_cache
</Directory>
# add_instrumentation must be enabled so that we can test /mod_pagespeed_beacon.
ModPagespeedEnableFilters add_instrumentation
<Directory "@@APACHE_DOC_ROOT@@/" >
# This is enabled to make sure we don't crash mod_negotiation.
Options +MultiViews
</Directory>
# Enable htaccess
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_example/" >
AllowOverride All
</Directory>
# Enable resize_rendered_image_dimensions
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_example/resize_rendered_dimensions" >
ModPagespeedCriticalImagesBeaconEnabled true
</Directory>
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/" >
AllowOverride All
# Some versions of mod_rewrite will refuse to do any work if
# symlink handling is off.
Options +FollowSymLinks
</Directory>
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/close_connection/" >
AllowOverride All
# Helps tests whether we successfully strip Connection:close
# results from the origin.
Options +SymLinksIfOwnerMatch
Header append 'Connection' 'close'
</Directory>
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/compressed/" >
# Files in this directory are already compressed so always add
# the right header.
Header set Cache-control "max-age=600"
Header append 'Content-Encoding' 'gzip'
AddType text/javascript .custom_ext
</Directory>
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/ipro/" >
# Files in this directory should include an err_headers_out
# header. 'Header always' writes to err_headers_out.
Header always set X-TestHeader "hello"
</Directory>
ModPagespeedLoadFromFile "http://@@APACHE_DOMAIN@@/mod_pagespeed_test/ipro/instant/" \
"@@APACHE_DOC_ROOT@@/mod_pagespeed_test/ipro/instant/"
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/ipro/cookie/" >
# Add Vary:Cookie. This should prevent us from optimizing the
# vary_cookie.css even though ModPagespeedRespectVary is off.
# apache/system_test.sh does the fetches test with and without cookies.
Header append Vary Cookie
ModPagespeedRespectVary off
ModPagespeedInPlaceWaitForOptimized on
</Directory>
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/ipro/cookie2/" >
# Add Vary:Cookie2. This should prevent us from optimizing the
# vary_cookie2.css even though ModPagespeedRespectVary is off.
# apache/system_test.sh does the fetches test with and without cookie2.
Header append Vary Cookie2
ModPagespeedRespectVary off
ModPagespeedInPlaceWaitForOptimized on
</Directory>
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/ipro/mod_deflate/" >
AddOutputFilterByType DEFLATE text/css
</Directory>
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/vary/no_respect/" >
ModPagespeedDisableFilters add_instrumentation,inline_css
ModPagespeedRespectVary off
</Directory>
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/no_cache/" >
# Files in this directory should be served uncacheable.
Header set Cache-control "no-cache"
</Directory>
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/remote_config/" >
# Files in this directory should be served uncacheable.
Header set Cache-control "max-age=7200, must-revalidate"
</Directory>
# Set jpeg Quality
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/jpeg_rewriting/" >
ModPagespeedJpegRecompressionQuality 70
</Directory>
# Set Generic Image Quality
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/webp_rewriting" >
ModPagespeedImageRecompressionQuality 75
</Directory>
# Set Webp Quality
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/image_rewriting" >
ModPagespeedWebpRecompressionQuality 65
</Directory>
# Enable split_html
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/split_html/" >
ModPagespeedEnableFilters split_html,split_html_helper,lazyload_images
ModPagespeedServeSplitHtmlInTwoChunks on
ModPagespeedCriticalLineConfig div[@id="container"]/div[4]
</Directory>
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/disable_no_transform" >
ModPagespeedDisableRewriteOnNoTransform off
<IfModule headers_module>
<FilesMatch "\.(js|css)$">
Header append 'Cache-Control' 'no-transform'
</FilesMatch>
</IfModule>
</Directory>
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/no_transform" >
Header append 'Cache-Control' 'no-transform'
</Directory>
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/strip_subresource_hints/default" >
ModPagespeedRewriteLevel CoreFilters
ModPagespeedDisableFilters add_instrumentation
ModPagespeedDisallow *dontrewriteme*
</Directory>
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/strip_subresource_hints/preserve_on/" >
ModPagespeedPreserveSubresourceHints on
ModPagespeedRewriteLevel CoreFilters
ModPagespeedDisableFilters add_instrumentation
</Directory>
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/strip_subresource_hints/preserve_off/" >
ModPagespeedPreserveSubresourceHints off
ModPagespeedRewriteLevel CoreFilters
ModPagespeedDisableFilters add_instrumentation
</Directory>
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/strip_subresource_hints/default_passthrough/" >
ModPagespeedRewriteLevel PassThrough
ModPagespeedDisableFilters add_instrumentation
</Directory>
# This Directory does not even exist, but by setting some options in that
# scope we test to make sure the options we claim are really settable in
# .htaccess. Note that <Directory> and .htaccess are enforced the same way.
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/htaccess_test" >
ModPagespeed on
ModPagespeedAllow *
ModPagespeedAvoidRenamingIntrospectiveJavascript on
ModPagespeedBeaconUrl foo
ModPagespeedCombineAcrossPaths off
ModPagespeedCssFlattenMaxBytes 100
ModPagespeedCssImageInlineMaxBytes 100
ModPagespeedCssInlineMaxBytes 100
ModPagespeedCssOutlineMinBytes 10000
ModPagespeedDisableFilters rewrite_images
ModPagespeedDisallow *bad*
ModPagespeedDomain example.com
ModPagespeedEnableFilters extend_cache
ModPagespeedImageInlineMaxBytes 100
ModPagespeedImageLimitOptimizedPercent 50
ModPagespeedImageLimitResizeAreaPercent 50
ModPagespeedJpegRecompressionQuality 85
ModPagespeedJsInlineMaxBytes 100
ModPagespeedJsOutlineMinBytes 10000
ModPagespeedLowercaseHtmlNames on
ModPagespeedMapOriginDomain localhost example.com
ModPagespeedMapRewriteDomain cdn.com example.com
ModPagespeedMaxHtmlParseBytes 100000
ModPagespeedMaxInlinedPreviewImagesIndex 10
ModPagespeedMinImageSizeLowResolutionBytes 100
ModPagespeedModifyCachingHeaders off
ModPagespeedRetainComment *ad_tag*
ModPagespeedRewriteLevel PassThrough
</Directory>
# Establish a proxy mapping where the current server proxies an image
# stored on ref.pssdemos.com. We use ref.pssdemos.com rather than
# modpagespeed.com so that we use a single html file both for:
# 1. a demo of the feature on modpagespeed.com. It would
# be confusing to demo a Proxying when the origin was the
# same as the proxy.
# 2. A system-test of the feature to be run with our usual testing.
ModPagespeedMapProxyDomain @@APACHE_DOMAIN@@/gstatic_images \
http://www.gstatic.com/psa/static
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/forbid_all_disabled/disabled" >
# Prevent the enabling of these filters for files in this directory
# -and- all subdirectories (they can't override it, deliberately).
ModPagespeedForbidAllDisabledFilters true
ModPagespeedDisableFilters remove_quotes,remove_comments
ModPagespeedDisableFilters collapse_whitespace
# Enable this, which was disabled in ../.htaccess, to test that we can
# enable something already disabled at the same time as we forbid all.
ModPagespeedEnableFilters inline_css
</Directory>
# This is needed for the server-side includes test in
# apache/system_test.sh. See mod_pagespeed_test/ssi/.htaccess as well.
<IfModule !include_module>
LoadModule include_module @@APACHE_MODULES@@/mod_include.so
</IfModule>
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
# For the mod_rewrite test in apache/system_test.sh
<IfModule !rewrite_module>
LoadModule rewrite_module @@APACHE_MODULES@@/mod_rewrite.so
</IfModule>
# For the vary: handling test
<IfModule !headers_module>
LoadModule headers_module @@APACHE_MODULES@@/mod_headers.so
</IfModule>
# Helps tests that extra headers supplied by the apache conf
# survive single-resource rewrites
#
# http://code.google.com/p/modpagespeed/issues/detail?id=324
Header append 'X-Extra-Header' '1'
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/nostore" >
Header append 'Cache-Control' 'no-store'
</Directory>
# Build a configuration hierarchy where at the root we have turned on a few
# filters, several of which do not preserve URLs, and in a subdirectory we have
# turned on preserve URLs.
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/preserveurls" >
#ModPagespeedEnableFilters inline_preview_images,lazyload_images
#ModPagespeedEnableFilters resize_mobile_images,rewrite_images,sprite_images
#ModPagespeedEnableFilters fallback_rewrite_css_urls,flatten_css_imports
#ModPagespeedEnableFilters inline_css,move_css_above_scripts,move_css_to_head
#ModPagespeedEnableFilters outline_css,rewrite_css,combine_css
#ModPagespeedEnableFilters combine_javascript,defer_javascript,inline_javascript
#ModPagespeedEnableFilters outline_javascript,rewrite_javascript
ModPagespeedRewriteLevel CoreFilters
</Directory>
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/preserveurls/on" >
ModPagespeedJsPreserveURLs On
ModPagespeedImagePreserveURLs On
ModPagespeedCssPreserveURLs On
# TODO(jmarantz): PreserveURLs should override the explicit setting at
# the level above that turns on inline_preview_images, resize_mobile_images,
# and lazyload_images
ModPagespeedDisableFilters inline_preview_images,resize_mobile_images
ModPagespeedDisableFilters lazyload_images
</Directory>
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/experimental_js_minifier" >
ModPagespeedUseExperimentalJsMinifier on
</Directory>
# However we should not allow user-specified cache-control on
# rewritten HTML or resources. This setting helps us make
# sure that we strip any user-specified cache-control when
# we rewrite HTML. We test this in apache/system_test.sh.
Header set Cache-Control "max-age=600"
# For regression test of connection failing.
ModPagespeedDomain modpagespeed.com:1023
# Test LoadFromFile mapping by mapping one dir to another.
ModPagespeedLoadFromFile "http://@@APACHE_DOMAIN@@/mod_pagespeed_test/load_from_file/web_dir/" "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/load_from_file/file_dir/"
ModPagespeedLoadFromFileMatch "^http://@@APACHE_DOMAIN@@/mod_pagespeed_test/load_from_file_match/web_([^/]*)/" "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/load_from_file/file_\1/"
ModPagespeedLoadFromFileRule Disallow "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/load_from_file/file_dir/httponly/"
ModPagespeedLoadFromFileRuleMatch Disallow \.ssp.css$
ModPagespeedLoadFromFileRuleMatch Allow exception\.ssp\.css$
# Print out detail about connection-refused errors. We don't negative-test
# this here cause it's a hassle; we just depend on the unit-tests for that.
ModPagespeedListOutstandingUrlsOnError on
ModPagespeedAvoidRenamingIntrospectiveJavascript off
# Test coverage for <ModPagespeedIf>
<ModPagespeedIf spdy>
# A setting one might want...
ModPagespeedDisableFilters combine_css
# Settings that doesn't make much sense, but which we want for tests.
ModPagespeedDisableFilters rewrite_css
ModPagespeedDisableFilters extend_cache
ModPagespeedDisableFilters rewrite_images
</ModPagespeedIf>
<ModPagespeedIf !spdy>
ModPagespeedShardDomain nonspdy.example.com s1.example.com,s2.example.com
</ModPagespeedIf>
# These will be sent to the origin domain when fetching subresources.
ModPagespeedCustomFetchHeader header value
ModPagespeedCustomFetchHeader x-other False
<Location /mod_pagespeed_log_request_headers.js>
SetHandler mod_pagespeed_log_request_headers
</Location>
ModPagespeedInPlaceResourceOptimization on
ModPagespeedRespectXForwardedProto on
<Location ~ "/mod_pagespeed_test/response_headers.html*">
SetHandler mod_pagespeed_response_options_handler
</Location>
ModPagespeedCompressMetadataCache true
# Make a non-empty subdirectory config to make sure that
# cache.flush updates get transmitted to nested configurations.
<Directory "@@APACHE_DOC_ROOT@@/cache_flush/" >
ModPagespeedRewriteLevel PassThrough
ModPagespeedEnableFilters inline_css
ModPagespeedDisableFilters add_instrumentation
</Directory>
# Directory config for gathering sample data from instrumented pages for
# purposes of mobilization.
<Directory "@@APACHE_DOC_ROOT@@/mobilization/" >
ModPagespeedRewriteLevel PassThrough
ModPagespeedEnableFilters mobilize
ModPagespeedLogMobilizationSamples true
</Directory>
# Another VirtualHost can be enabled by default as it does no harm. This can
# be used for testing alternate configuration settings in system tests without
# restarting Apache.
#
# We use NameVirtualHost so we can have multiple VirtualHost
# configurations sharing the same port. Note that the port is
# different depending on whether we are running system tests as root
# or as a normal user. Note that fetches must be done with
# http_proxy=SECONDARY_HOST:SECONDARY_PORT.
Listen localhost:@@APACHE_SECONDARY_PORT@@
NameVirtualHost localhost:@@APACHE_SECONDARY_PORT@@
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName secondary.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeed on
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@_secondary"
ModPagespeedCompressMetadataCache false
ModPagespeedMapProxyDomain secondary.example.com/gstatic_images \
http://www.gstatic.com/psa/static
# This is the same memcached instance as the root configuration,
# but with a different file-cache path.
#MEMCACHED ModPagespeedMemcachedServers localhost:@@MEMCACHED_PORT@@
ModPagespeedCacheFlushFilename cache.flush
# If you uncomment this, the test will fail, proving we can disable
# cache-flush polling.
# ModPagespeedCacheFlushPollIntervalSec 0
# Helps testing whether the configuration of reporting 'unload' time works.
ModPagespeedReportUnloadTime on
# Make a non-empty subdirectory config to make sure that
# cache.flush updates get transmitted to nested configurations.
<Directory "@@APACHE_DOC_ROOT@@/cache_flush/" >
ModPagespeedRewriteLevel PassThrough
ModPagespeedEnableFilters inline_css
ModPagespeedDisableFilters add_instrumentation
</Directory>
#REWRITE # These lines are only needed for the mod_rewrite test, where
#REWRITE # we are just trying to prove that we remove mod_rewrite from
#REWRITE # the request if the URL is going to be handled by mod_pagespeed.
#REWRITE # In the root install test, this mod_rewrite seems to only take
#REWRITE # effect in a vhost. I haven't explored why that is because it
#REWRITE # doesn't affect the point of the test.
#REWRITE Options +Indexes
#REWRITE RewriteEngine on
#REWRITE RewriteRule (.*).jpg.pagespeed.(.*).jpg /broken.jpg
#REWRITE RewriteRule mod_pagespeed_statistics /broken
#REWRITE RewriteRule shortcut.html /mod_pagespeed_example/index.html
</VirtualHost>
# Sets up a logical home-page server on www.example.com
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName www.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeedLoadFromFile http://cdn.example.com @@APACHE_DOC_ROOT@@
ModPagespeedMapRewriteDomain cdn.example.com origin.example.com
ModPagespeedRewriteLevel PassThrough
ModPagespeedEnableFilters rewrite_css,rewrite_images
</VirtualHost>
# Sets up a logical origin for CDNs to fetch content from, on origin.example.com.
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName origin.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeedLoadFromFile http://cdn.example.com @@APACHE_DOC_ROOT@@
ModPagespeedMapRewriteDomain cdn.example.com origin.example.com
ModPagespeedRewriteLevel PassThrough
ModPagespeedEnableFilters rewrite_css,rewrite_images
</VirtualHost>
# Sets up a logical cdn, which is where we tell browsers to fetch resources from.
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName cdn.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeedLoadFromFile http://cdn.example.com @@APACHE_DOC_ROOT@@
ModPagespeedMapRewriteDomain cdn.example.com origin.example.com
ModPagespeedRewriteLevel PassThrough
ModPagespeedEnableFilters rewrite_css,rewrite_images
</VirtualHost>
# Sets up a virtual host where we can specify forbidden filters without
# affecting any other hosts.
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName forbidden.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedBlockingRewriteKey psatest
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
# Start with all core filters enabled ...
ModPagespeedRewriteLevel CoreFilters
# ... then forbid these filters ...
ModPagespeedForbidFilters remove_quotes,remove_comments,collapse_whitespace
ModPagespeedForbidFilters rewrite_css,resize_images
# ... and disable but not forbid this one (to ensure we retain its URL).
ModPagespeedDisableFilters inline_css
</VirtualHost>
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName unauthorizedresources.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeedRewriteLevel PassThrough
ModPagespeedInlineResourcesWithoutExplicitAuthorization Script,Stylesheet
ModPagespeedCssInlineMaxBytes 1000000
</VirtualHost>
# Sets up a logical home-page server on
# max-cacheable-content-length.example.com. This server is only used to test
# ModPagespeedMaxCacheableContentLength, i.e.,
# max_cacheable_response_content_length.
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName max-cacheable-content-length.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedBlockingRewriteKey psatest
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeedRewriteLevel PassThrough
ModPagespeedEnableFilters rewrite_javascript
ModPagespeedMaxCacheableContentLength 85
</VirtualHost>
# Set the value of the X-Mod-Pagespeed header
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName xheader.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeedXHeaderValue "UNSPECIFIED VERSION"
</VirtualHost>
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName domain-hyperlinks-on.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
# Don't actually try to rewrite any resources; the ones in
# rewrite_domains.html don't actually exist.
ModPagespeedRewriteLevel PassThrough
ModPagespeedDomainRewriteHyperlinks on
ModPagespeedMapRewriteDomain http://dst.example.com http://src.example.com
ModPagespeedEnableFilters rewrite_domains
</VirtualHost>
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName domain-hyperlinks-off.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
# Don't actually try to rewrite any resources; the ones in
# rewrite_domains.html don't actually exist.
ModPagespeedRewriteLevel PassThrough
ModPagespeedDomainRewriteHyperlinks off
ModPagespeedMapRewriteDomain http://dst.example.com http://src.example.com
ModPagespeedEnableFilters rewrite_domains
</VirtualHost>
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName client-domain-rewrite.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
# Don't actually try to rewrite any resources; the ones in
# rewrite_domains.html don't actually exist.
ModPagespeedRewriteLevel PassThrough
ModPagespeedMapRewriteDomain http://client-domain-rewrite.example.com \
http://@@APACHE_DOMAIN@@
ModPagespeedClientDomainRewrite true
ModPagespeedEnableFilters rewrite_domains
</VirtualHost>
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName url-attribute.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
# Don't actually try to rewrite any resources; the ones in
# rewrite_domains.html don't actually exist.
ModPagespeedRewriteLevel PassThrough
# This is used for testing dynamically defined url-valued
# attributes
ModPagespeedUrlValuedAttribute span src Hyperlink
ModPagespeedUrlValuedAttribute hr imgsrc Image
ModPagespeedDomainRewriteHyperlinks on
ModPagespeedMapRewriteDomain http://dst.example.com http://src.example.com
ModPagespeedEnableFilters rewrite_domains
ModPagespeedUrlValuedAttribute custom a Image
ModPagespeedUrlValuedAttribute custom b otherResource
ModPagespeedUrlValuedAttribute custom c hyperlink
ModPagespeedUrlValuedAttribute img alt-src Image
ModPagespeedUrlValuedAttribute video alt-a Image
ModPagespeedUrlValuedAttribute video alt-b Image
ModPagespeedUrlValuedAttribute video alt-b Image
ModPagespeedUrlValuedAttribute link data-stylesheet Stylesheet
ModPagespeedUrlValuedAttribute span data-stylesheet-a Stylesheet
ModPagespeedUrlValuedAttribute span data-stylesheet-b Stylesheet
ModPagespeedUrlValuedAttribute span data-stylesheet-c Stylesheet
# Also test that we can redefine spec-defined attributes.
ModPagespeedUrlValuedAttribute blockquote cite Image
</VirtualHost>
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName absolute-urls.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
# This is used for testing that we don't load resources from
# absolute urls during resource reconstruction unless they're for
# our own hostname. While ModPagespeedDomain should no longer
# have an effect on whether we load absolute urls, we need to
# include it to be sure we're failing because of the code under
# test and not because the domain lawyer is rejecting it.
ModPagespeedDomain http://example.com
</VirtualHost>
<IfModule !proxy_module>
LoadModule proxy_module @@APACHE_MODULES@@/mod_proxy.so
LoadModule proxy_http_module @@APACHE_MODULES@@/mod_proxy_http.so
</IfModule>
# Proxy @@PAGESPEED-TEST-HOST@@ for testing Issue 582.
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName @@PAGESPEED-TEST-HOST@@
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeed off
ServerAlias @@PAGESPEED-TEST-HOST@@
ProxyPass / http://@@PAGESPEED-TEST-HOST@@/
ProxyPassReverse / http://@@PAGESPEED-TEST-HOST@@/
</VirtualHost>
# The following three VHosts are created for Issue 599.
# Create three sites for a MapProxyDomain experiment. The sites are:
# cdn: forwards requests to proxy.
# proxy: runs MPS, and optimizes data from origin.
# origin: a normal website that is potentially external to proxy.
# The CDN in our example which simply forwards requests to the proxy.
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName cdn.pm.example.com
# Point the docroot somewhere useless so that we know we're not fetching
# from the CDN's filesystem. Note that in particular we are not attempting to
# run CGI scripts.
DocumentRoot "@@APACHE_DOC_ROOT@@/mod_pagespeed_example/cgi"
# Tell mod_proxy that we need to use a proxy to reach our VirtualHost servers.
ProxyRemote * http://localhost:@@APACHE_SECONDARY_PORT@@
ProxyPass /external/ http://proxy.pm.example.com/external/
ProxyPassReverse /external/ http://proxy.pm.example.com/external/
# Unplugged so that it passes the .pagespeed. requests through to the proxy.
ModPagespeed unplugged
</VirtualHost>
# The proxy that runs MPS and can proxy data from origin. When the CDN
# requests proxied data from the proxy the proxy knows to fetch it from the
# origin server.
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName proxy.pm.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/"
# The usual cache location so that it gets cleared for on_cache_flush tests.
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
# We have to fetch through our localhost proxy to get to our other vhosts.
ModPagespeedFetchProxy "localhost:@@APACHE_SECONDARY_PORT@@"
# Origin resources should be optimized and hosted on proxy/external but
# rewritten to cdn/external.
ModPagespeedDomain proxy.pm.example.com
ModPagespeedMapProxyDomain proxy.pm.example.com/external \
origin.pm.example.com \
cdn.pm.example.com/external
ModPagespeedRewriteLevel CoreFilters
ModPagespeedRewriteDeadlinePerFlushMs -1
</VirtualHost>
# The origin that serves the images to be proxied (Puzzle.jpg)
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName origin.pm.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@/mod_pagespeed_example/images"
ModPagespeed unplugged
</VirtualHost>
# For testing setting options by cookies.
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName options-by-cookies-enabled.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@_optionsbycookieson"
ModPagespeedAllowOptionsToBeSetByCookies true
ModPagespeedStickyQueryParameters sticky_secret
ModPagespeedRewriteLevel PassThrough
ModPagespeedEnableFilters collapse_whitespace
ModPagespeedDisableFilters remove_comments,add_instrumentation
</VirtualHost>
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName options-by-cookies-disabled.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@_optionsbycookiesoff"
ModPagespeedAllowOptionsToBeSetByCookies false
ModPagespeedDisableFilters add_instrumentation
</VirtualHost>
# For testing request option overriding.
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName request-option-override.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeedRequestOptionOverride abc
ModPagespeedRewriteLevel PassThrough
ModPagespeedEnableFilters collapse_whitespace
ModPagespeedDisableFilters remove_comments,add_instrumentation
</VirtualHost>
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName remote-config.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeedRemoteConfigurationUrl "http://127.0.0.1:@@RCPORT1@@/remote.cfg"
ModPagespeedRemoteConfigurationTimeoutMs 1500
</VirtualHost>
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName remote-config-partially-invalid.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeedRemoteConfigurationUrl "http://127.0.0.1:@@RCPORT2@@/remote.cfg"
ModPagespeedRemoteConfigurationTimeoutMs 1500
</VirtualHost>
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName remote-config-invalid.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeedRemoteConfigurationUrl "http://127.0.0.1:@@RCPORT3@@/remote.cfg"
ModPagespeedRemoteConfigurationTimeoutMs 1500
</VirtualHost>
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName remote-config-out-of-scope.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeedRemoteConfigurationUrl "http://127.0.0.1:@@RCPORT4@@/remote.cfg"
ModPagespeedRemoteConfigurationTimeoutMs 1500
</VirtualHost>
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName remote-config-failed-fetch.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeedRemoteConfigurationUrl "http://127.0.0.1:@@RCPORT5@@/remote.cfg"
ModPagespeedRemoteConfigurationTimeoutMs 1500
</VirtualHost>
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName remote-config-slow-fetch.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeedRemoteConfigurationUrl "http://127.0.0.1:@@RCPORT6@@/remote.cfg"
ModPagespeedRemoteConfigurationTimeoutMs 1500
</VirtualHost>
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName remote-config-with-htaccess.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeedRemoteConfigurationTimeoutMs 1500
</VirtualHost>
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName remote-config-experiment.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeedRemoteConfigurationUrl "http://127.0.0.1:@@RCPORT7@@/remote.cfg"
ModPagespeedRemoteConfigurationTimeoutMs 1500
</VirtualHost>
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName uses-sendfile.example.com
ModPagespeedBlockingRewriteKey psatest
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeedEnableFilters rewrite_javascript
Header always set X-Sendfile blablabla
</VirtualHost>
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName uses-xaccelredirect.example.com
ModPagespeedBlockingRewriteKey psatest
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeedEnableFilters rewrite_javascript
Header always set X-Accel-Redirect blablabla
</VirtualHost>
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName doesnt-sendfile.example.com
ModPagespeedBlockingRewriteKey psatest
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeedEnableFilters rewrite_javascript
</VirtualHost>
# For testing ipro + load from file + unknown extensions.
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName lff-ipro.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeedLoadFromFile \
"http://lff-ipro.example.com/mod_pagespeed_test/lff_ipro" \
"@@APACHE_DOC_ROOT@@/mod_pagespeed_test/lff_ipro"
</VirtualHost>
# For testing signed urls.
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName signed-urls.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeedUrlSigningKey helloworld
ModPagespeedRewriteLevel PassThrough
</VirtualHost>
# For testing signed urls, ignoring signature validity.
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName signed-urls-transition.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeedUrlSigningKey helloworld
ModPagespeedRewriteLevel PassThrough
ModPagespeedAcceptInvalidSignatures true
</VirtualHost>
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName unsigned-urls-transition.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
# This server will not sign URLs, but AcceptInvalidSignatures is on.
ModPagespeedRewriteLevel PassThrough
ModPagespeedAcceptInvalidSignatures true
</VirtualHost>
# For testing handling of redirected requests.
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName redirect.example.com
Redirect /redirect/ /
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeedRewriteLevel PassThrough
ModPagespeedEnableFilters add_instrumentation,collapse_whitespace
</VirtualHost>
# Proxy + IPRO a gzip'd file for testing Issue 896.
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName ipro-proxy.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@_ipro_proxy"
ModPagespeed on
ModPagespeedInPlaceResourceOptimization on
ModPagespeedEnableFilters rewrite_domains
ProxyPass / http://localhost:@@APACHE_TERTIARY_PORT@@/mod_pagespeed_test/ipro/mod_deflate/
ProxyPassReverse / http://localhost:@@APACHE_TERTIARY_PORT@@/mod_pagespeed_test/ipro/mod_deflate/
AddOutputFilterByType DEFLATE text/css
</VirtualHost>
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName compressedcache.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeed on
ModPagespeedRewriteLevel PassThrough
ModPagespeedEnableFilters rewrite_css
ModPagespeedHttpCacheCompressionLevel 9
</VirtualHost>
<VirtualHost localhost:@@APACHE_SECONDARY_PORT@@>
ServerName uncompressedcache.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeedFileCachePath "@@MOD_PAGESPEED_CACHE@@"
ModPagespeed on
ModPagespeedRewriteLevel PassThrough
ModPagespeedEnableFilters rewrite_css
ModPagespeedHttpCacheCompressionLevel 0
AddOutputFilterByType DEFLATE text/css
DeflateCompressionLevel 1
</VirtualHost>
# Backend for ipro-proxy.example.com
Listen 127.0.0.1:@@APACHE_TERTIARY_PORT@@
NameVirtualHost 127.0.0.1:@@APACHE_TERTIARY_PORT@@
<VirtualHost 127.0.0.1:@@APACHE_TERTIARY_PORT@@>
ServerName ipro-proxy-backend.example.com
DocumentRoot "@@APACHE_DOC_ROOT@@"
ModPagespeed unplugged
AddOutputFilterByType DEFLATE text/css
</VirtualHost>
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/ipro/instant/wait/" >
ModPagespeedInPlaceWaitForOptimized on
# Make the deadline long here for valgrind tests. We could
# conditionalize this.
ModPagespeedInPlaceRewriteDeadlineMs 20000
</Directory>
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/ipro/wait/" >
# TODO(jmarantz): ModPagespeedInPlaceWaitForOptimized should be superfluous,
# or made equivalent to ModPagespeedInPlaceRewriteDeadlineMs -1, which waits
# forever. Otherwise ModPagespeedInPlaceRewriteDeadlineMs should just have
# the specified deadline.
# # See https://github.com/pagespeed/mod_pagespeed/issues/1171 for more
# detailed discussion.
ModPagespeedInPlaceWaitForOptimized on
</Directory>
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/ipro/wait/long/" >
# Make the deadline long here for valgrind tests. We could
# conditionalize this.
ModPagespeedInPlaceRewriteDeadlineMs 10000
</Directory>
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/ipro/wait/short/" >
ModPagespeedEnableFilters in_place_optimize_for_browser
# Make the deadline short here as we expect to always miss it
# in tests.
ModPagespeedInPlaceRewriteDeadlineMs 1
</Directory>
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/ipro/instant/deadline/" >
ModPagespeedInPlaceRewriteDeadlineMs -1
</Directory>
# Test to make sure that user-authenticated resources do not get cached and
# optimized.
<Directory "@@APACHE_DOC_ROOT@@/mod_pagespeed_test/auth" >
AllowOverride AuthConfig
AuthType Basic