{"id":795,"date":"2012-10-23T05:53:21","date_gmt":"2012-10-23T05:53:21","guid":{"rendered":"http:\/\/www.omniweb.com\/wordpress\/?p=795"},"modified":"2012-10-23T06:07:49","modified_gmt":"2012-10-23T06:07:49","slug":"modpagespeed-virtual-host-configuration","status":"publish","type":"post","link":"https:\/\/www.omniweb.com\/wordpress\/?p=795","title":{"rendered":"ModPagespeed Virtual host configuration"},"content":{"rendered":"<p>It seems the document for vhost config left out the line for ModPagespeedGeneratedFilePrefix because when I copied them I got this error:<br \/>\n<code>mod_pagespeed is enabled.  The following directives must not be NULL\\nModPagespeedFileCachePath=\/var\/cache\/mod_pagespeed\/\\nModPagespeedGeneratedFilePrefix=<br \/>\nConfiguration Failed<\/code><\/p>\n<p>This is what I used and seems to work<\/p>\n<p><code>ModPagespeed on<br \/>\n  # The ModPagespeedFileCachePath directory must exist and be writable by the<br \/>\n  # apache user (as specified by the User directive).<br \/>\n  ModPagespeedFileCachePath \"\/var\/mod_pagespeed\/cache\/\"<br \/>\n  ModPagespeedGeneratedFilePrefix \"\/var\/mod_pagespeed\/files\"<\/p>\n<p>  # Other ModPagespeed directives here ...<br \/>\n  # This page lets you view statistics about the mod_pagespeed module.<br \/>\n  <Location \/mod_pagespeed_statistics><br \/>\n    Order allow,deny<br \/>\n    # You may insert other \"Allow from\" lines to add hosts you want to allow to<br \/>\n    # look at generated statistics.  Another possibility is to comment out the<br \/>\n    # \"Order\" and \"Allow\" options from the config file, to allow any client that<br \/>\n    # can reach your server to examine statistics.  This might be appropriate in<br \/>\n    # an experimental setup or if the Apache server is protected by a reverse<br \/>\n    # proxy that will filter URLs in some fashion.<br \/>\n    Allow from all<br \/>\n    SetHandler mod_pagespeed_statistics<br \/>\n  <\/Location><br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It seems the document for vhost config left out the line for ModPagespeedGeneratedFilePrefix because when I copied them I got this error: mod_pagespeed is enabled. The following directives must not be NULL\\nModPagespeedFileCachePath=\/var\/cache\/mod_pagespeed\/\\nModPagespeedGeneratedFilePrefix= Configuration Failed This is what I used and &hellip; <a href=\"https:\/\/www.omniweb.com\/wordpress\/?p=795\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/795"}],"collection":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=795"}],"version-history":[{"count":4,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/795\/revisions"}],"predecessor-version":[{"id":799,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/795\/revisions\/799"}],"wp:attachment":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}