LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   LiteSpeed Cache (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=30)
-   -   [Solved] Error Configure Cache on cPanel Pre Virtual Host Include (http://www.litespeedtech.com/support/forum/showthread.php?t=6182)

skyknight 08-20-2012 10:18 AM

[Solved] Error Configure Cache on cPanel Pre Virtual Host Include
 
Hi,

i want to use LS Cache on cPanel server so i follow instruction in page

http://www.litespeedtech.com/support...ead.php?t=4719

I put this code (instruction no.5) to my "Pre Virtual Host Include"

[CODE]RewriteEngine On
RewriteEngine On
## cache should be available for HEAD or GET requests
RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
## select which pages to cache
RewriteCond %{HTTP_COOKIE} page_contain_cachetoken=yes
##with other condition
RewriteCond %{QUERY_STRING} !s=[a-fA-F0-9]{32}
##excluding certain URLs
RewriteCond %{REQUEST_URI} !/(login|register|usercp|private|profile|cron|image) \.php$
##cache for 2 mins for php pages only
RewriteRule /(.*\.php)?$

webizen 08-20-2012 10:44 AM

there is an extra space between "image)" and "\.php$". seems to be added by vbulletin. it needs to be removed.
%
Quote:

RewriteCond %{REQUEST_URI} !/(login|register|usercp|private|profile|cron|image) \.php$
It should be like below instead.
Quote:

RewriteCond %{REQUEST_URI} !/(login|register|usercp|private|profile|cron|image) \.php$

skyknight 08-20-2012 10:57 AM

thank you :)


All times are GMT -7. The time now is 08:37 PM.