mod_disk_cache works for vhost (a), but not (b)
mod_disk_cache works for vhost (a), but not (b)
am 25.08.2009 16:09:03 von Henry
--=_1yg975ses3vo
Content-Type: text/plain;
charset=ISO-8859-1;
DelSp="Yes";
format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi,
I'm pulling my hair out with this one, so hopefully someone could =20
provide some pointers or suggestions on how to diagnose.
Using httpd: 2.2.8
Problem: mod_disk_cache is working flawlessly for vhost (a), but not =20
at all for vhost (b). The config for vhost (b) is exactly the same as =20
(a), except for the domain name, of course.
Server logs for vhost(a) show normal mod_disk_cache activity:
....
mod_disk_cache.c(1051): disk_cache: Body for URL =20
http://abc.com:80/index.php?l=3D1 cached.
....
Server logs for vhost(b) shows absolutely no activity for =20
mod_disk_cache at all.
Config for vhost (a) - which works perfectly:
---------------------------------------------
ServerName abc.com
Header unset Cache-Control
Header unset Last-Modified
Header unset Pragma
Header set Expires "access plus 1 day"
Header set Cache-Control "max-age=3D86400, public"
CacheIgnoreNoLastMod On
CacheStoreNoStore On
CacheStorePrivate On
CacheIgnoreHeaders Set-Cookie
CacheMaxExpire 86400
CacheLastModifiedFactor 10
CacheDefaultExpire 86400
CacheEnable disk /
CacheRoot /var/cache/mod_proxy
CacheDirLevels 5
CacheDirLength 4
Config for vhost (b) - only difference is Server name:
------------------------------------------------------
....
ServerName abctest.com
....
I have no idea where else to look to even begin to figure out what's going o=
n.
Any suggestions?
Thanks a million.
Regards
Henry
--=_1yg975ses3vo
Content-Type: application/pgp-signature
Content-Description: PGP Digital Signature
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQBKk/B/ScDE0kOqdzoRAsc9AJ9oJ03NMyySboK7K4GohsKtg2XWVwCc CYah
ac7WCMsDc1Og9eFzfjBq/qI=
=WP6T
-----END PGP SIGNATURE-----
--=_1yg975ses3vo--
Re: mod_disk_cache works for vhost (a), but not (b)
am 25.08.2009 16:15:04 von Krist van Besien
On Tue, Aug 25, 2009 at 4:09 PM, Henry wrote:
> Hi,
>
> I'm pulling my hair out with this one, so hopefully someone could provide
> some pointers or suggestions on how to diagnose.
>
> Using httpd: 2.2.8
>
> Problem: =A0mod_disk_cache is working flawlessly for vhost (a), but not a=
t all
> for vhost (b). =A0The config for vhost (b) is exactly the same as (a), ex=
cept
> for the domain name, of course.
Do both hosts serve the same content? If both are identical, why not
just define vhost b as a serveralias in vhost a?
Krist
--=20
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: mod_disk_cache works for vhost (a), but not (b)
am 25.08.2009 16:56:33 von Henry
--=_4yoi7efu32ww
Content-Type: text/plain;
charset=ISO-8859-1;
DelSp="Yes";
format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Quoting "Krist van Besien" :
> Do both hosts serve the same content? If both are identical, why not
> just define vhost b as a serveralias in vhost a?
Thanks for the quick feedback -
abctest.com is a test environment for live abc.com, so they're
actually separate sites.
--=_4yoi7efu32ww
Content-Type: application/pgp-signature
Content-Description: PGP Digital Signature
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQBKk/uhScDE0kOqdzoRAkvNAJ49PVirk7aQ00AXEclowNfSq4V//QCf T/GH
NleNrFco/WLH+Rf5ibLI2lE=
=Ap5N
-----END PGP SIGNATURE-----
--=_4yoi7efu32ww--
Re: mod_disk_cache works for vhost (a), but not (b)
am 25.08.2009 17:05:59 von Krist van Besien
On Tue, Aug 25, 2009 at 4:56 PM, Henry wrote:
> Quoting "Krist van Besien" :
>>
>> Do both hosts serve the same content? If both are identical, why not
>> just define vhost b as a serveralias in vhost a?
>
> Thanks for the quick feedback -
>
> abctest.com is a test environment for live abc.com, so they're actually
> separate sites.
No access control on your test site?
Krist
--
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: mod_disk_cache works for vhost (a), but not (b)
am 26.08.2009 07:56:33 von Henry
--=_6m380k3tqzcw
Content-Type: text/plain;
charset=ISO-8859-1;
DelSp="Yes";
format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Quoting "Krist van Besien" :
> No access control on your test site?
Yes, the test site has a .htaccess file limiting access. This works
as expected.
I can browse to the test site just fine - it's just not being cached.
h
--=_6m380k3tqzcw
Content-Type: application/pgp-signature
Content-Description: PGP Digital Signature
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQBKlM6RScDE0kOqdzoRAk/1AJ0ZfELl3uxnVybA1u05UYRhSQuzngCf aVPT
lOO7aMkIJc+YM6buahLBo30=
=xzLA
-----END PGP SIGNATURE-----
--=_6m380k3tqzcw--
Re: mod_disk_cache works for vhost (a), but not (b)
am 26.08.2009 10:03:55 von Krist van Besien
On Wed, Aug 26, 2009 at 7:56 AM, Henry wrote:
> Quoting "Krist van Besien" :
>>
>> No access control on your test site?
>
> Yes, the test site has a .htaccess file limiting access. =A0This works as
> expected.
I suspected that.
> I can browse to the test site just fine - it's just not being cached.
Which is also as expected. Apache does not cache pages that are
authenticated. As you can read here:
http://httpd.apache.org/docs/2.2/mod/mod_cache.html
"content with access protection is not cached".
Krist
--=20
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: mod_disk_cache works for vhost (a), but not (b)
am 26.08.2009 10:10:41 von Henry
--=_1yrfitl9zk74
Content-Type: text/plain;
charset=ISO-8859-1;
DelSp="Yes";
format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Quoting "Krist van Besien" :
> Which is also as expected. Apache does not cache pages that are
> authenticated. As you can read here:
> http://httpd.apache.org/docs/2.2/mod/mod_cache.html
> "content with access protection is not cached".
Ah, thanks Krist. My fault for not reading the *entire* page...
Cheers
Henry
--=_1yrfitl9zk74
Content-Type: application/pgp-signature
Content-Description: PGP Digital Signature
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQBKlO4BScDE0kOqdzoRAokmAJ0VzNtmHopUD9QkpLjSMix50jhIfACd FvT1
y5QkXexjWDD/80RXS43qgFg=
=HPYd
-----END PGP SIGNATURE-----
--=_1yrfitl9zk74--