Hello,

I'm trying to use Boost on a multilingual site, installed on a LiteSpeed server. Everything seems to work fine, except the administration side where many pages can't be accessed. I want to mention that Boost is disabled for XML and AJAX/JSON.

Views can't be edited (error: An AJAX HTTP error occurred. HTTP Result code: 404). The same error appears when trying to filter content using Administration views.

I get "Access denied" when:

  • checking for updates
  • enabling / disabling themes
  • refreshing translated strings

and probably many other places that I haven't discovered yet.

I tried switching between Options +SymLinksIfOwnerMatch and Options +FollowSymLinks, %{HTTP_HOST} and %{SERVER_NAME}, etc without any luck.
All these problems disappear and the admin side behave like it's supposed to, only if the "boost code" is removed from .htaccess.

Thanks!

Comments

surfgatinho’s picture

I have this problem. Strange no one else has anything to say...

gge’s picture

Not using boost anymore, but a while ago I received an email from a user who told me that the problem was solved when the following was used:

### BOOST START ###
 
  # Allow for alt paths to be set via htaccess rules; allows for cached variants (future mobile support)
  RewriteRule .* - [E=boostpath:normal]
 
  # Caching for anonymous users
 # Skip boost IF not get request OR uri has wrong dir OR cookie is set OR request came from this server OR https request
  RewriteCond %{REQUEST_METHOD} !^(GET|HEAD)$ [OR]
  RewriteCond %{REQUEST_URI} (^/(admin|cache|misc|modules|sites|system|openid|themes|node/add|comment/reply))|(/(edit|user|user/(login|password|register))$) [OR]
  RewriteCond %{HTTPS} on [OR]
  RewriteCond %{HTTP_COOKIE} DRUPAL_UID [OR]
  RewriteCond %{ENV:REDIRECT_STATUS} 200
  RewriteRule .* - [S=3]
 
  # GZIP
  RewriteCond %{HTTP:Accept-encoding} !gzip
  RewriteRule .* - [S=1]
  RewriteCond %{DOCUMENT_ROOT}/cache/%{ENV:boostpath}/%{HTTP_HOST}%{REQUEST_URI}_%{QUERY_STRING}\.html\.gz -s
  RewriteRule .* cache/%{ENV:boostpath}/%{HTTP_HOST}%{REQUEST_URI}_%{QUERY_STRING}\.html\.gz [L,T=text/html,E=no-gzip:1]
 
  # NORMAL
  RewriteCond %{DOCUMENT_ROOT}/cache/%{ENV:boostpath}/%{HTTP_HOST}%{REQUEST_URI}_%{QUERY_STRING}\.html -s
  RewriteRule .* cache/%{ENV:boostpath}/%{HTTP_HOST}%{REQUEST_URI}_%{QUERY_STRING}\.html [L,T=text/html]
 
  ### BOOST END ###

Important: I have no idea if the above code is working, so please test it before.

savage1974’s picture

Important: I have no idea if the above code is working, so please test it before.

Hi guys.
I've tried the script. Everything works perfectly
Thanks a lot, gge!

PS usefull link: https://www.drupal.org/node/1459690