Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b26e174d8b | |||
| 026f86dfc2 | |||
| 0db78f6e8c | |||
| 4af79a1e2b | |||
| ed20dabf66 |
@@ -29,8 +29,8 @@ if [ "$mod_pagespeed_dir" = "unset" ] ; then
|
|||||||
echo " You need to separately download the pagespeed library:"
|
echo " You need to separately download the pagespeed library:"
|
||||||
echo ""
|
echo ""
|
||||||
echo " $ cd /path/to/ngx_pagespeed"
|
echo " $ cd /path/to/ngx_pagespeed"
|
||||||
echo " $ wget https://dl.google.com/dl/page-speed/psol/1.11.33.0.tar.gz"
|
echo " $ wget https://dl.google.com/dl/page-speed/psol/1.11.33.2.tar.gz"
|
||||||
echo " $ tar -xzvf 1.11.33.0.tar.gz # expands to psol/"
|
echo " $ tar -xzvf 1.11.33.2.tar.gz # expands to psol/"
|
||||||
echo ""
|
echo ""
|
||||||
echo " Or see the installation instructions:"
|
echo " Or see the installation instructions:"
|
||||||
echo " https://github.com/pagespeed/ngx_pagespeed#how-to-build"
|
echo " https://github.com/pagespeed/ngx_pagespeed#how-to-build"
|
||||||
|
|||||||
+2
-2
@@ -940,8 +940,8 @@ void NgxFetch::FixUserAgent() {
|
|||||||
user_agent += "NgxNativeFetcher";
|
user_agent += "NgxNativeFetcher";
|
||||||
}
|
}
|
||||||
GoogleString version = StrCat(
|
GoogleString version = StrCat(
|
||||||
" ", kModPagespeedSubrequestUserAgent,
|
" (", kModPagespeedSubrequestUserAgent,
|
||||||
"/" MOD_PAGESPEED_VERSION_STRING "-" LASTCHANGE_STRING);
|
"/" MOD_PAGESPEED_VERSION_STRING "-" LASTCHANGE_STRING ")");
|
||||||
if (!StringPiece(user_agent).ends_with(version)) {
|
if (!StringPiece(user_agent).ends_with(version)) {
|
||||||
user_agent += version;
|
user_agent += version;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -682,6 +682,13 @@ char* ps_main_configure(ngx_conf_t* cf, ngx_command_t* cmd, void* conf);
|
|||||||
char* ps_srv_configure(ngx_conf_t* cf, ngx_command_t* cmd, void* conf);
|
char* ps_srv_configure(ngx_conf_t* cf, ngx_command_t* cmd, void* conf);
|
||||||
char* ps_loc_configure(ngx_conf_t* cf, ngx_command_t* cmd, void* conf);
|
char* ps_loc_configure(ngx_conf_t* cf, ngx_command_t* cmd, void* conf);
|
||||||
|
|
||||||
|
// We want NGX_CONF_MULTI for some very old versions:
|
||||||
|
// https://github.com/pagespeed/ngx_pagespeed/commit/66f1b9aa
|
||||||
|
// but it's gone in recent revisions, so provide a compat #define if needed
|
||||||
|
#ifndef NGX_CONF_MULTI
|
||||||
|
#define NGX_CONF_MULTI 0
|
||||||
|
#endif
|
||||||
|
|
||||||
// TODO(jud): Verify that all the offsets should be NGX_HTTP_SRV_CONF_OFFSET and
|
// TODO(jud): Verify that all the offsets should be NGX_HTTP_SRV_CONF_OFFSET and
|
||||||
// not NGX_HTTP_LOC_CONF_OFFSET or NGX_HTTP_MAIN_CONF_OFFSET.
|
// not NGX_HTTP_LOC_CONF_OFFSET or NGX_HTTP_MAIN_CONF_OFFSET.
|
||||||
ngx_command_t ps_commands[] = {
|
ngx_command_t ps_commands[] = {
|
||||||
|
|||||||
+4
-2
@@ -23,9 +23,11 @@
|
|||||||
# Exits with status 2 if command line args are wrong.
|
# Exits with status 2 if command line args are wrong.
|
||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
# ./run_tests.sh primary_port secondary_port mod_pagespeed_dir pagespeed_test_host
|
# ./run_tests.sh primary_port secondary_port mod_pagespeed_dir ngx_binary
|
||||||
|
# pagespeed_test_host
|
||||||
# Example:
|
# Example:
|
||||||
# ./run_tests.sh 8050 8051 /path/to/mod_pagespeed www.modpagespeed.com
|
# ./run_tests.sh 8050 8051 /path/to/mod_pagespeed /path/to/nginx/binary
|
||||||
|
# selfsigned.modpagespeed.com
|
||||||
#
|
#
|
||||||
|
|
||||||
# Normally we test only with the native fetcher off. Set
|
# Normally we test only with the native fetcher off. Set
|
||||||
|
|||||||
Reference in New Issue
Block a user