testing: a server block for testing load from file with ipro

This commit is contained in:
Jeff Kaufman
2014-06-04 16:53:11 -04:00
parent 10f5093bf6
commit 676344bc8a
+12 -2
View File
@@ -154,9 +154,9 @@ http {
set $bypass_cache "1"; set $bypass_cache "1";
} }
# For testing purposes, we never generate values that will result in a beacon # For testing purposes, we never generate values that will result in a beacon
# unless a test request it via "X-Allow-Beacon: yes" in its request header. # unless a test request it via "X-Allow-Beacon: yes" in its request header.
# This is for testing purposes, note that in a production environment, # This is for testing purposes, note that in a production environment,
# you want 'set_random $rand 0 100;' unconditionally! # you want 'set_random $rand 0 100;' unconditionally!
set $rand 5; set $rand 5;
@@ -702,6 +702,16 @@ http {
pagespeed EnableFilters rewrite_css,rewrite_images; pagespeed EnableFilters rewrite_css,rewrite_images;
} }
server {
listen @@SECONDARY_PORT@@;
server_name lff-ipro.example.com;
pagespeed FileCachePath "@@FILE_CACHE@@";
pagespeed LoadFromFile
"http://lff-ipro.example.com/mod_pagespeed_example/lff_ipro"
"@@SERVER_ROOT@@/mod_pagespeed_example/lff_ipro";
}
server { server {
listen @@SECONDARY_PORT@@; listen @@SECONDARY_PORT@@;
server_name tryfiles.example.com; server_name tryfiles.example.com;