httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 31822] New: - mod_proxy as reverse proxy brokes images
Date Thu, 21 Oct 2004 08:41:40 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31822>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31822

mod_proxy as reverse proxy brokes  images

           Summary: mod_proxy as reverse proxy brokes  images
           Product: Apache httpd-2.0
           Version: 2.0.52
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_proxy
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: pekka.panula@sofor.fi


I use mod_proxy as reverse proxy with mod_deflate to compress www-pages and
mod_mem_cache as cache

My backend http-server is Lotus Domino 6.0.3.
Problem is that Apache somehow brokes images (gif/jpeg) for some unknown reason.

It does not depend on browser as this happens with MSIE 6 (all hotfixes, service
packs included) and with Firefox 1.0 Preview version, also with squid as forward
proxy, still images sometimes goes broken also happens with older Mozilla versions.

If i do not use reverse proxy everything works just fine, so i do not think
Lotus Domino brokes images in normal situation without reverse proxy (never
happened that Domino brokes images).

What i have discovered that there is missing couple kilobytes from beginning of
image. Could this problem be related with combination of mod_mem_cache,
mod_deflate and mod_proxy as reverse proxy. 

and when reloading page or waiting some time and reloading page it gets image ok.

My configuration for host is:
# - COMPRESSION - #
 SetOutputFilter DEFLATE
    BrowserMatch ^Mozilla/4         gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSI[E]           !no-gzip !gzip-only-text/html

# do not compress images, pdf also nogo
 SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|pdf)$ no-gzip dont-vary
         Header append      Vary                 User-Agent env=!dont-vary

DeflateFilterNote  Input  instream
DeflateFilterNote Output outstream
DeflateFilterNote  Ratio     ratio
# - COMPRESSION - #

# - GLOBAL CACHE SETTINGS - #
     CacheDefaultExpire 3600
CacheIgnoreCacheControl Off
   CacheIgnoreNoLastMod Off
         CacheMaxExpire 3600

<VirtualHost *:80>
 CacheForceCompletion 100
               SetEnv force-proxy-request-1.0 1
               SetEnv proxy-nokeepalive 1

           ServerName www.xxxx.yy
          ServerAdmin xxx@yyy.zz
        ProxyRequests Off
    ProxyPreserveHost On
            ProxyPass /error/ !
            ProxyPass / http://x.y.z.z/
     ProxyPassReverse / http://x.y.z.z/
          CacheEnable mem /
                    # 128 MB cache
           MCacheSize 131072
 MCacheMaxObjectCount 2500
  MCacheMinObjectSize 1
               # max. 50 kB obj. size
  MCacheMaxObjectSize 51200
CacheIgnoreCacheControl Off
   CacheIgnoreNoLastMod Off
         CacheMaxExpire 3600
<Proxy *>
   Order deny,allow
   Allow from all
</Proxy>

 CustomLog "|/usr/sbin/cronolog /path/logfiles/z.y.z/z.y.x-access_log-%Y-%m-%d"
combined
</VirtualHost>

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message