Ich versuche, meinen Apache als caching Proxy einzurichten. Der Cache wächst auch beständig.
Leider sehe ich anhand des Netzwerktraffic, daß die Dateien zwar gecached werden, aber trotzdem noch jedes mal auf dem Quell-Server geholt werden.
In der error.log habe ich folgendes:
[Mon Sep 22 13:05:11 2008] [debug] mod_cache.c(602): cache: Caching url: http://server/datei.dat
[Mon Sep 22 13:05:11 2008] [debug] mod_cache.c(608): cache: Removing CACHE_REMOVE_URL filter.
[Mon Sep 22 13:05:11 2008] [debug] mod_cache.c(796): (OS 80)The file exists. : cache: store_headers failed
Meine httpd.conf sieht so aus:
- Code: Select all
ThreadsPerChild 100
MaxRequestsPerChild 0
ServerRoot "C:\Program Files\Apache Software Foundation\Apache2.2"
Listen 25253
LoadModule status_module modules/mod_status.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule disk_cache_module modules/mod_disk_cache.so
ServerName server
DocumentRoot "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs"
<Directory "/">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
Satisfy all
</Directory>
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
</FilesMatch>
ErrorLog logs/error.log
LogLevel debug
<IfModule log_config_module>
LogFormat "%q %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%q %h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
LogFormat "%q %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog logs/access.log common
</IfModule>
<IfModule proxy_module>
ProxyRequests on
ProxyVia On
ProxyBadHeader Ignore
ProxyStatus On
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
</IfModule>
<IfModule disk_cache_module>
CacheRoot "d:\cache"
CacheDefaultExpire 4320000
CacheMaxExpire 6048000
CacheMaxFileSize 1000000000000
CacheMinFileSize 1
CacheEnable disk /
CacheEnable disk http://
CacheDirLevels 5
CacheDirLength 3
</IfModule>
<IfModule mod_status.c>
ExtendedStatus On
</IfModule>
Für jede Hilfe/ Anregung wäre ich sehr dankbar!
Gruß,
Andreas