Compare commits

...

1 Commits

Author SHA1 Message Date
Otto van der Schaaf 16032274b0 save state 2017-05-30 10:44:09 +02:00
+46
View File
@@ -85,6 +85,8 @@ http {
pagespeed StatisticsLogging on; pagespeed StatisticsLogging on;
pagespeed LogDir "@@TEST_TMP@@/logdir"; pagespeed LogDir "@@TEST_TMP@@/logdir";
pagespeed MaxFetchRedirects 3;
# Expanded to CentralControllerPort directive when RUN_CONTROLLER_TEST=on # Expanded to CentralControllerPort directive when RUN_CONTROLLER_TEST=on
@@CONTROLLER@@ @@CONTROLLER@@
@@ -1672,6 +1674,50 @@ http {
pagespeed MessagesDomains Disallow *; pagespeed MessagesDomains Disallow *;
pagespeed FileCachePath "@@FILE_CACHE@@"; pagespeed FileCachePath "@@FILE_CACHE@@";
} }
server {
listen @@SECONDARY_PORT@@;
listen [::]:@@SECONDARY_PORT@@;
server_name redirecting-fetch.example.com;
pagespeed FileCachePath "@@FILE_CACHE@@";
pagespeed Domain redirecting-fetch.example.com:@@SECONDARY_PORT@@;
pagespeed MapOriginDomain 127.0.0.1:@@SECONDARY_PORT@@
redirecting-fetch.example.com:@@SECONDARY_PORT@@;
pagespeed Disallow *styles/disallowed.css;
pagespeed InPlaceResourceOptimization off;
location /redir_to_test/styles/blue.css {
return 301 /mod_pagespeed_example/styles/yellow.css;
}
location /redir_to_test/styles/1.css {
return 301 /redir_to_test/styles/2.css;
}
location /redir_to_test/styles/2.css {
return 301 /mod_pagespeed_example/styles/yellow.css;
}
location /redir_to_test/styles/redirtodisallowed.css {
return 301 /redir_to_test/styles/disallowed.css;
}
}
server {
listen @@SECONDARY_PORT@@;
listen [::]:@@SECONDARY_PORT@@;
server_name redirecting-fetch-single-only.example.com;
pagespeed FileCachePath "@@FILE_CACHE@@";
pagespeed MaxFetchRedirects 1;
pagespeed Domain redirecting-fetch.example.com:@@SECONDARY_PORT@@;
pagespeed MapOriginDomain 127.0.0.1:@@SECONDARY_PORT@@
redirecting-fetch-single-only.example.com:@@SECONDARY_PORT@@;
location /redir_to_test/styles/1.css {
return 301 /redir_to_test/styles/2.css;
}
location /redir_to_test/styles/2.css {
return 301 /mod_pagespeed_example/styles/yellow.css;
}
}
server { server {
server_name nothing-explicitly-allowed.example.com; server_name nothing-explicitly-allowed.example.com;
pagespeed FileCachePath "@@FILE_CACHE@@"; pagespeed FileCachePath "@@FILE_CACHE@@";