Apache 2.4.3 php-fpm mod_fast_cgi and mod_cache
Posted
by
Anjia
on Server Fault
See other posts from Server Fault
or by Anjia
Published on 2012-09-07T22:27:41Z
Indexed on
2012/09/08
3:39 UTC
Read the original article
Hit count: 574
apache2
Did anybody successfully configured mod_cache in apache 2.4 with php-fpm and fastcgi?
my cgi config:
<IfModule mod_fastcgi.c>
Alias /php5.fastcgi /var/www/fastcgi/php5.fastcgi
AddHandler php-script .php
FastCGIExternalServer /var/www/fastcgi/php5.fastcgi -socket /mnt/tmp/fast/php-fpm.sock -idle-timeout 1600 -pass-header Authorization
Action php-script /php5.fastcgi virtual
My php-fpm config is standard and I am loading mod_cache and mod_disk_cache in Apache.
However the Apache does not seems to cache any content.
The debug log file:
Fri Sep 07 23:22:59.691333 2012] [cache:debug] [pid 35623:tid 123613201929984] mod_cache.c(161): [client 10.0.0.22:21938] AH00750: Adding CACHE_SAVE filter for /index.html
[Fri Sep 07 23:22:59.691345 2012] [cache:debug] [pid 35623:tid 123613201929984] mod_cache.c(171): [client 10.0.0.22:21938] AH00751: Adding CACHE_REMOVE_URL filter for /index.html
[Fri Sep 07 23:23:01.326598 2012] [cache:debug] [pid 35623:tid 123613185144576] cache_storage.c(626): [client 10.0.0.110:5414] AH00698: cache: Key for entity /index.html?(null) is `http://10.0.1.16:8080/index.html?`
© Server Fault or respective owner