Google Groups Home
Help | Sign in
Ligttpd could'nt save cache file
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
LM  
View profile
 More options Jun 23, 4:10 am
From: LM <huynhhaihu...@gmail.com>
Date: Mon, 23 Jun 2008 01:10:20 -0700 (PDT)
Local: Mon, Jun 23 2008 4:10 am
Subject: Ligttpd could'nt save cache file
Dear Team,

I have installed Mod-cache Stable version 1.4.4 for lighttpd 1.4.19,
and i used example config. But i didn't see any cache files in cache
folder?

This example:

cache.support-queries = "enable" #ignore '?' in url
cache.bases = ("/data/cache") #write cached files in /data/cache
directory
cache.refresh-pattern = (
        "/$" => "5 update-on-refresh no-expire-header", # update homepage
every 5 minutes and on refresh requests without setting expire headers
        "\.(?i)(flv)$" => "0 fetchall-for-range-request flv-streaming", # to
work with mod_flv_streaming for flv files
        "\.(?i)(js|css|xml)$" => "240", # update js/css/xml every 4 hours and
on refresh requests
        "\.(?i)(htm|html|shtml)$" => "30", # update html/htm/shtml every 30
minutes and on refresh requests
        "\.(?i)(jpg|bmp|jpeg|gif|png)$" => "2880", # update graphics files
every 2 days
        "\.(?i)(rar|zip|wmv|avi|mp3|ape|rm|mpeg|mpg|wma|asf|rmvb|flv)$" => "0
fetchall-for-range-request", # cache media file forever
        "." => "30 update-on-refresh" # default to update every 30 minutes
and on refresh requests
)
#mod_proxy_core setting, config your backend servers here
proxy-core.backends = ( "x.x.x.x:80", "y.y.y.y:80")
proxy-core.balancer = "round-robin" # or "sqf" or "carp"
proxy-core.protocol = "http"
#it's important to enable proxy-core.worked-with-modcache,
#  or mod_proxy_core will not cooperate with mod-cache
proxy-core.worked-with-modcache = "enable"

Please help me.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
LM  
View profile
 More options Jun 23, 4:13 am
From: LM <huynhhaihu...@gmail.com>
Date: Mon, 23 Jun 2008 01:13:30 -0700 (PDT)
Local: Mon, Jun 23 2008 4:13 am
Subject: Re: Ligttpd could'nt save cache file
Sorry this is correct config:

cache.support-queries = "enable" #ignore '?' in url
cache.bases = ("/data/cache") #write cached files in /data/cache
directory
cache.refresh-pattern = (
        "/$" => "5 update-on-refresh no-expire-header", # update homepage
every 5 minutes and on refresh requests without setting expire headers
        "\.(?i)(flv)$" => "0 fetchall-for-range-request flv-streaming", # to
work with mod_flv_streaming for flv files
        "\.(?i)(js|css|xml)$" => "240", # update js/css/xml every 4 hours and
on refresh requests
        "\.(?i)(htm|html|shtml)$" => "30", # update html/htm/shtml every 30
minutes and on refresh requests
        "\.(?i)(jpg|bmp|jpeg|gif|png)$" => "2880", # update graphics files
every 2 days
        "\.(?i)(rar|zip|wmv|avi|mp3|ape|rm|mpeg|mpg|wma|asf|rmvb|flv)$" => "0
fetchall-for-range-request", # cache media file forever
        "." => "30 update-on-refresh" # default to update every 30 minutes
and on refresh requests
)
#mod_proxy setting, config your backend servers here
proxy.server  = ( "/" =>
        (
                ( "host" => "x.x.x.x", "port" => 80 ) # real backend
http server ip and port
        )
)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hongyu  
View profile
 More options Jun 23, 6:16 am
From: Hongyu <shellc...@gmail.com>
Date: Mon, 23 Jun 2008 18:16:44 +0800
Local: Mon, Jun 23 2008 6:16 am
Subject: Re: Ligttpd could'nt save cache file

set cache.debug = "enable" and see what modcache tells in lighttpd.error.log
file


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
LM  
View profile
 More options Jun 23, 6:50 am
From: LM <huynhhaihu...@gmail.com>
Date: Mon, 23 Jun 2008 03:50:13 -0700 (PDT)
Local: Mon, Jun 23 2008 6:50 am
Subject: Re: Ligttpd could'nt save cache file
Thanks,

I have done.

On Jun 23, 5:16 pm, Hongyu <shellc...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google