Deprecate ModPagespeedInheritVHostConfig.
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
# can set this to "off".
|
||||
ModPagespeed on
|
||||
|
||||
# We want VHosts to inherit global configuration.
|
||||
# If this is not included, they'll be independent (except for inherently
|
||||
# global options), at least for backwards compatibility.
|
||||
# VHosts should inherit global configuration.
|
||||
# This option is only for backwards compatibility and will be removed
|
||||
# in the next major mod_pagespeed release.
|
||||
ModPagespeedInheritVHostConfig on
|
||||
|
||||
# Direct Apache to send all HTML output to the mod_pagespeed
|
||||
|
||||
@@ -1490,10 +1490,17 @@ static const char* ParseDirective(cmd_parms* cmd, void* data, const char* arg) {
|
||||
arg);
|
||||
} else if (StringCaseEqual(directive, kModPagespeedInheritVHostConfig)) {
|
||||
ret = CheckGlobalOption(cmd, kErrorInVHost, handler);
|
||||
if (ret == NULL) {
|
||||
if (ret == nullptr) {
|
||||
ret = ParseOption<bool>(
|
||||
factory, cmd,
|
||||
&ApacheRewriteDriverFactory::set_inherit_vhost_config, arg);
|
||||
if (ret == nullptr && !factory->inherit_vhost_config()) {
|
||||
handler->Message(kWarning,
|
||||
"%s has been deprecated and will be forced to \"on\" "
|
||||
"in the next major mod_pagespeed release. You should "
|
||||
"update your config",
|
||||
kModPagespeedInheritVHostConfig);
|
||||
}
|
||||
}
|
||||
} else if (StringCaseEqual(directive,
|
||||
kModPagespeedCollectRefererStatistics) ||
|
||||
|
||||
Reference in New Issue
Block a user