I see why you can suspect Apache httpd of setting these headers, but AFAIK from 
having used Apache 2.0.x and mod_proxy for a number of years, Apache does not 
"rewrite" headers unless you do so explicitly in the configuration.

You will note that in the first case the application replies HTTP/1.0 and in 
the second, HTTP/1.1. Did you use wget in both cases ?

Could you possibly snoop/sniff the traffic apache->server using 
snoop/tcpdump/ethereal ? That could shed some light on who sets the headers the 
way the client receives them. It would however require that you install the 
reverse proxy and the application on different servers.


-ascs
 
-----Message d'origine-----
De : Lucas Brasilino [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 31 janvier 2008 18:27
À : users@httpd.apache.org
Objet : [EMAIL PROTECTED] Apache2 rewriting HTTP headers

Hi!

I'm using apache 2.0.59 and I'm getting an weird problem.
First of all, I have no 'Header <blabla> unset' from mod_headers.
Apache is rewriting 'Cache-Control' and 'Pragma' headers when is being fetched 
_only_ PDF and DOC file. An example:
Asking direct to background server (using wget):

  1 HTTP/1.0 200 OK
  2 Server: Zope/(Zope 2.9.8-final, python 2.4.4, linux2) ZServer/1.1 
Plone/2.5.3-final
  3 Date: Thu, 31 Jan 2008 17:10:19 GMT
  4 Content-Length: 49665
  5 X-Cache-Headers-Set-By: CachingPolicyManager: 
/intranets/restrito/caching_policy_manager
  6 Accept-Ranges: bytes
  7 Expires: Thu, 31 Jan 2008 17:15:19 GMT
  8 Connection: Keep-Alive
  9 X-Caching-Rule-Id: downloads
10 Cache-Control: max-age=300, must-revalidate
11 Content-Type: application/pdf
12 X-Header-Set-Id: 10

Asking to apache2:

  1 HTTP/1.1 200 OK
  2 Date: Thu, 31 Jan 2008 17:11:10 GMT
  3 Server: Zope/(Zope 2.9.8-final, python 2.4.4, linux2) ZServer/1.1 
Plone/2.5.3-final
  4 Content-Length: 49665
  5 X-Cache-Headers-Set-By: CachingPolicyManager: 
/intranets/restrito/caching_policy_manager
  6 Accept-Ranges: bytes
  7 Expires: Thu, 31 Jan 2008 17:16:10 GMT
  8 X-Caching-Rule-Id: downloads
  9 Cache-Control: -
10 Content-Type: application/pdf
11 X-Header-Set-Id: 10
12 Pragma: -
13 X-Cluster-Server: plutao
14 Connection: close

Please see 'Pragma' and 'Cache-Control'.


Any help or tip how can I debug this problem ?

Configuration:
<snipet>

  RewriteEngine On
  RewriteRule ^/atlas/WEB-INF/classes/(.*)
http://otherserver.org/atlas/WEB-INF/classes/$1 [L,R=301]
  RewriteRule ^/(.*)
http://localhost:8080/VirtualHostBase/http/mybackendserver.org:80/intranets/restrito/VirtualHostRoot/$1
[L,P]

  Header set X-Cluster-Server plutao

  <IfModule mod_proxy.c>
   ProxyVia On
   <LocationMatch "^[^/]">
    Deny from all
   </LocationMatch>
  </IfModule>

</snipet>


thanks a lot in advance
Lucas Brasilino

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to