Jump to content

how to configure 'cache' in apache2.2


galaxy

Recommended Posts

Hello,

 

I am newbie for Apache2.2. I'd like to ask about caching. ( OS = FreeBSD )

 

I put some lines in httpd.conf. Numbered lines are added as per http://httpd.apache.org/docs/2.2/mod/mod_cache.html. ( But it is meant for windows OS and thus, I changed directory "/var/cache/apache" instead of "c:/cacheroot")

 

 

LoadModule cache_module libexec/apache22/mod_cache.so

 

1. <IfModule mod_cache.c>

 

LoadModule disk_cache_module libexec/apache22/mod_disk_cache.so

 

2. <IfModule mod_disk_cache.c>

3. CacheRoot /var/cache/apache/

4. CacheEnable disk /

5. CacheDirLevels 5

6. CacheDirLength 3

7. </IfModule>

 

restart apache.

 

 

questions :

 

1) in /libexec/apache22/, there are only files for extensions *.la *.a *.so ( there is no *.c)

 

2) there is no cache folder in /var/ altough I specified in httpd.conf.

 

 

3) when I used this command, htcacheclean -d15 -p/var/cache/apache -l100M , it doesnt work.

 

 

is there any other suggestion? Any help would be much appreciated.

 

rgds,

galaxy

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.