How do I make pagespeed follow htaccess directives?

As per the guide, you can manipulate how mod-pagespeed works using .htaccess files: https://developers.google.com/speed/pagespeed/module/configuration#htaccess

However, already having mod-pagespeed working properly with Apache, it doesn't respond to anything I put in the .htaccess files. Only if I put the same modification into virtualhost.

The first base I would like to achieve is the ability to enable and disable mod-pagespeed with just .htaccess. But the installation

ModPagespeed Off

      

in .htaccess doesn't deactivate it.

Whether there is a

AllowOverride ModPagespeed

      

or similar, do I have to set in vhost.conf for this to work?

I've already tried

  • AllowOverride ModPagespeed
  • AllowOverride Pagespeed
  • AllowOverride mod-pagespeed
  • AllowOverride mod_pagespeed

But I am getting "Invalid override option" in all of these cases.

I can successfully manage other apache settings using .htaccess like mod_rewrite, htpassword, etc., so the htaccess files work.

I don't have AllowOverride No, I have a list of AllowOVerrides like this:

AllowOverride AuthConfig Indexes Limit
AllowOverrideList Options ErrorDocument LanguagePriority AddCharset AddEncoding AddLanguage RemoveCharset RemoveEncoding SetEnvIf SetEnvIfNoCase BrowserMatch RewriteEngine RewriteOptions RewriteBase RewriteCond RewriteRule Redirect RedirectTemp RedirectPermanent RedirectMatch

      

So, I was looking for a suitable way to allow Pagespeed overrides in the same way. I checked in other settings and it actually works. But not here. This is used by a cgi wrapper called sbox.

Any hint? Thank.

+3


source to share





All Articles