Command httpd -t shows warning: [pagespeed:warn] ModPagespeedInheritVHostConfig is deprecated. Please remove it from your configuration

Follow

Comments

2 comments

  • Avatar
    Stan Clemance

    The cause is incorrect - Pagespeed is not deprecated, just a single directive in the config.  In newer versions of Pagespeed, the ModPagespeedInheritVHostConfig directive is deprecated, (it is forced to an on state), and should be therefore removed from the configuration file.  To do that, locate the directive in /etc/httpd/conf.d/pagespeed.conf, and comment out the following line:

    # ModPagespeedInheritVHostConfig on

    (It will be configured as either on or off, but should be commented out regardless).

    This will fix the issue indicated above.

  • Avatar
    Anzhelika Khapaknysh

    Hi @Stan Clemance

    Thanks for sharing the solution!
    The article has been updated accordingly.

Please sign in to leave a comment.

Have more questions? Submit a request