From 676344bc8a8228a811e1faf054d8aaf4533191eb Mon Sep 17 00:00:00 2001 From: Jeff Kaufman Date: Wed, 4 Jun 2014 16:53:11 -0400 Subject: [PATCH] testing: a server block for testing load from file with ipro --- test/pagespeed_test.conf.template | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/test/pagespeed_test.conf.template b/test/pagespeed_test.conf.template index 118b4b1a7..842117d26 100644 --- a/test/pagespeed_test.conf.template +++ b/test/pagespeed_test.conf.template @@ -154,9 +154,9 @@ http { 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. - # 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! set $rand 5; @@ -702,6 +702,16 @@ http { 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 { listen @@SECONDARY_PORT@@; server_name tryfiles.example.com;