httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean T Allen <s...@usaherbals.com>
Subject [users@httpd] mod_cache: how to determine its running
Date Sun, 21 Nov 2004 03:48:27 GMT
Basics:

Server version: Apache/2.0.52

Compiled in modules:
  core.c
  mod_access.c
  mod_auth.c
  mod_cache.c
  mod_disk_cache.c
  mod_mem_cache.c
  mod_log_config.c
  mod_env.c
  mod_setenvif.c
  mod_proxy.c
  proxy_connect.c
  proxy_ftp.c
  proxy_http.c
  mod_ssl.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_dir.c
  mod_imap.c
  mod_actions.c
  mod_alias.c
  mod_rewrite.c
  mod_so.c

And lastly issue...

I am reverse proxying to an httpd server instance running on 127.0.0.1:8081
Have a mem_cache setup that doesnt seem to be working....

Here are some snippets:

CacheEnable mem /
CacheRoot /cache/toppik
CacheSize 5000000
CacheGcInterval 1
CacheLastModifiedFactor 0.1
CacheDefaultExpire 3600
CacheMaxExpire 43200
CacheForceCompletion 60
#CacheIgnoreCacheControl On
CacheIgnoreNoLastMod On
MCacheMaxObjectCount 10000
MCacheMaxObjectSize 12800000
MCacheMinObjectSize 0
MCacheRemovalAlgorithm LRU
MCacheSize 100000

There are some disk cache related things in there as I was playing 
around with it during test.

and the mod-rewrite stuff that proceeds the cache entries in the config file

RewriteEngine On

# send all requests to www
RewriteCond %{HTTP_HOST}   !^www\.toppik\.info [NC]
RewriteCond %{HTTP_HOST}   !^$
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^/(.*)         https://www.toppik.info/$1 [L,R]
RewriteCond %{HTTP_HOST}   !^www\.toppik\.info [NC]
RewriteCond %{HTTP_HOST}   !^$
RewriteRule ^/(.*)         http://www.toppik.info/$1 [L,R]
# tracking rewrite
RewriteCond %{QUERY_STRING} ^(.*)&keyword=([^&]+)&?(.*)
RewriteRule ^/s-([^/]+)/(.*) /s-$1&kw=%2/$2?%1&%3
RewriteCond %{QUERY_STRING} ^keyword=([^&]+)&?(.*)
RewriteRule ^/s-([^/]+)/(.*) /s-$1&kw=%1/$2?%2
RewriteCond %{QUERY_STRING} ^(.*)&olid=([^&]+)&?(.*)
RewriteRule ^/s-([^/]+)/(.*) /s-$1&olid=%2/$2?%1&%3
RewriteCond %{QUERY_STRING} ^olid=([^&]+)&?(.*)
RewriteRule ^/s-([^/]+)/(.*) /s-$1&olid=%1/$2?%2
# dynamic rewrite
RewriteRule ^/(s-[^/]*)(/(.*?))*(/mp)+/(.*)$ http://127.0.0.1:8080/$1/$5 [P]
RewriteRule ^(/(.*?))*(/mp)+/(.*)$ http://127.0.0.1:8080/$4 [P]
# admin rewrite
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/admin/(.*)$ https://www.toppik.info/admin/$1 [R,L]
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(s-[^/]*)/admin/(.*)$ https://www.toppik.info/$1/admin/$2 
[R,L]
RewriteRule ^/(s-[^/]*)/admin/(.*)$ http://127.0.0.1:8080/$1/admin/$2 [P]
RewriteRule ^/admin/(.*)$ http://127.0.0.1:8080/admin/$1 [P]
# lid mapping rewrite
RewriteRule ^/s-[^/]*/(.*) /$1
# hit tracking rewrite
RewriteRule /ht.gif$ /images/ht.gif [QSA]
# awstats
RewriteRule /(awstat.*) http://127.0.0.1:8080/$1 [P]
# static file rewrite
#RewriteRule /(server.*) /$1 [L]
RewriteRule (.*)$ http://127.0.0.1:8081$1 [P]

Standard response header example:

Date: Sun, 21 Nov 2004 04:34:49 GMT
Server: thttpd/2.25b 29dec2003
Content-Type: text/html; charset=iso-8859-1
Last-Modified: Fri, 19 Nov 2004 21:26:26 GMT
Accept-Ranges: bytes
Content-Length: 35484
Cache-Control: max-age=43200
Expires: Sun, 21 Nov 2004 16:34:49 GMT

Some where o where do I have this misconfigured?
Order that module compiled in?
Something esoteric in the setup?
Freaky rewrite rule getting in the way?

Your help greatly appreciated...

-Sean-






Mime
View raw message