You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-de@httpd.apache.org by filtered <zo...@googlemail.com> on 2009/03/10 08:04:47 UTC
mod_expires überschreibt nicht applikations-spezifischen Expires Header
Umgebung: Apache 2.2.3 konfiguriert als Reverse Proxy für Zope.
Symptom: Zope generiert auf Applikationsebene einen Expires-Header am 1/1/2000
Date: Tue, 10 Mar 2009 06:52:32 GMT
Server: Zope/(Zope 2.10.6-final, python 2.4.6, linux2) ZServer/1.1 Plone/3.1.7
Content-Length: 20464
Expires: Sat, 01 Jan 2000 00:00:00 GMT
Content-Type: text/html;charset=utf-8
Content-Language: en
Vary: Accept-Encoding
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Length: 20,464 (20K) [text/html]
Auf Apache Ebene soll Expires auf "access + 1 hour/day" umgesetzt werden. Hier
die Konfiguration:
<VirtualHost 1.2.3.4:80>
ServerName KJC-WS2.kjc.example.com
ServerSignature off
Timeout 45
LimitRequestBody 1048576
RewriteEngine On
RewriteRule ^/(.*)
http://127.0.0.1:8080/VirtualHostBase/http/KJC-WS2.kjc.example.com:80/Plone/VirtualHostRoot/$1
[P]
CustomLog /var/log/apache2/foo.log combined
AddOutputFilterByType DEFLATE text/html text/xml text/plain text/css
CacheRoot /tmp/cache
CacheEnable disk /
CacheIgnoreCacheControl on
CacheEnable disk /
CacheDirLevels 5
CacheDirLength 3
CacheEnable mem /
MCacheSize 4096
MCacheMaxObjectCount 100
MCacheMinObjectSize 1
MCacheMaxObjectSize 2048
ExpiresActive On
ExpiresDefault "access plus 1 day"
ExpiresByType image/gif "access plus 1 day"
ExpiresByType image/jpg "access plus 1 day"
ExpiresByType image/jpeg "access plus 1 day"
ExpiresByType text/html "access plus 1 hour"
ExpiresByType text/css "access plus 1 hour"
</VirtualHost>
Der Expires Header bleibt aber auf 1/1/2000 egal ob man durch Port 80
über den Proxy auf Zope zugreift oder direkt über den Zope Port 8080.
Eine ähnliche Konfiguration funktioniert auf einer anderen Maschine
mit der gleichen Apache Version - ich sehe nicht den Unterschied für
das unterschiedliche Verhalten!?
Andreas
--------------------------------------------------------------------------
Apache HTTP Server Mailing List "users-de"
unsubscribe-Anfragen an users-de-unsubscribe@httpd.apache.org
sonstige Anfragen an users-de-help@httpd.apache.org
--------------------------------------------------------------------------