Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 76863 invoked from network); 28 Feb 2009 10:10:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Feb 2009 10:10:03 -0000 Received: (qmail 6718 invoked by uid 500); 28 Feb 2009 10:09:51 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 6701 invoked by uid 500); 28 Feb 2009 10:09:51 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 6692 invoked by uid 99); 28 Feb 2009 10:09:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Feb 2009 02:09:51 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NORMAL_HTTP_TO_IP,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ivars.strazdins@gmail.com designates 209.85.218.179 as permitted sender) Received: from [209.85.218.179] (HELO mail-bw0-f179.google.com) (209.85.218.179) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Feb 2009 10:09:41 +0000 Received: by bwz27 with SMTP id 27so1400474bwz.24 for ; Sat, 28 Feb 2009 02:09:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=hipdqwCgL1FK3wj0nTPyWzQYMPO+hWxZaKllR5GX8as=; b=HuFZwQFkrMuuFiXg9X7ycherCPnCWLiiDGVgArBQCZtAJaBNPJG4+PiqjXO7URox0Z f0j68A/IU+So2Ekizag3mFB8yPy0qKRFXpkkybxlPy35k/bGqUcq9uM7dk17i+Cuwd09 ZIFZsvqtyW81SlrFijDczSXenuhOxO4eSK8Yg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=FZCEAfyhiwWVFU8cLrr18iD4+BOzqSEn+SVeEZ0Rq2IX8w6u6Se+IPawlGsF7iXPtl MpkB65/e3y76WFNaUeNMi9qDm0ywF6mELmpMDyzCxtsu3qBpDLnlYBUNGXiZMknHtyvs zakDlfUqXJuxAsGe6nw4Xr8mtf4Q/jL2r6XCw= Received: by 10.103.227.10 with SMTP id e10mr1806088mur.30.1235815760922; Sat, 28 Feb 2009 02:09:20 -0800 (PST) Received: from ?192.168.3.103? ([84.237.170.29]) by mx.google.com with ESMTPS id u9sm3203947muf.55.2009.02.28.02.09.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 28 Feb 2009 02:09:20 -0800 (PST) Message-ID: <49A90D4E.3080002@gmail.com> Date: Sat, 28 Feb 2009 12:09:18 +0200 From: =?UTF-8?B?SXZhcnMgU3RyYXpkacWGxaE=?= Reply-To: ivars.strazdins@gmail.com User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: users@httpd.apache.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] lost headers in reply from server - possible mod_balancer problem? Hello all, I use apache reverse proxy connected to two tomcat servers via ajp protocol and mod_proxy_balancer . All connections to apache are ssl only. In a very brief diagram: [client] <-- ssl --> [apache reverse proxy] <-- (balancer, ajp protocol) --> [tomcat1 or tomcat2] The problem appeared after introducing mod_balancer into equation. Apache is 2.2.11 on Linux. Tomcats are 6.0.18 on Windows. The setup is working, but every now and then (about 1-5%) the client instead of a web page is presented with a "save as..." dialog box . If I save the file, it has the reply in gzipped format. It appears that the reply to client is send back with crippled headers. I took a closer look (see below) and the bad one has lost Content-Encoding header and Vary has changed, too. Compression (mod_deflate) is enabled. This saves bandwidth, but the problem does not go away. In the same time switching off compression completely is not an option as performance goes down dramatically (clients are behind slow links). I googled all around but I am not expert in apache configuration. Something similar I've seen only here: http://www1.il.squid-cache.org/mail-archive/squid-users/200712/0206.html The questions: 1) is my configuration unnecessary complex? With apache balancer I want to achieve some sort of high availability yet keep performance with ajp protocol between apache and tomcat. 2) whom to blame for the pop-up "save" windows - me (apache and tomcat configuration), apache, tomcat or, finally - the application? If anyone can help with suggestions - of course I can provide more detailed configuration. Thanks for you time, Ivars NORMAL REPLY. ---------------------------------------------------------- https://192.168.0.2/pers_det.do?formMode=3&id=342119^ POST /pers_det.do?formMode=3&id=342119 HTTP/1.1 Host: 192.168.0.2 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: lv,en-us;q=0.7,en;q=0.3 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: https://192.168.0.2/goBack.do?back=1^ Cookie: JSESSIONID=50210C8660067165EF0B42E0DD2FFD38.vdeavkprimary Content-Type: application/x-www-form-urlencoded Content-Length: 6 back=1 HTTP/1.x 200 OK Date: Thu, 26 Feb 2009 10:36:06 GMT Content-Type: text/html;charset=UTF-8 Vary: Accept-Encoding,User-Agent Content-Encoding: gzip Keep-Alive: timeout=15 Connection: Keep-Alive Transfer-Encoding: chunked ---------------------------------------------------------- CRIPPLED REPLY ---------------------------------------------------------- https://192.168.0.2/pers_det.do?formMode=3&id=342119^ POST /pers_det.do?formMode=3&id=342119 HTTP/1.1 Host: 192.168.0.2 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: lv,en-us;q=0.7,en;q=0.3 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: https://192.168.0.2/goBack.do?back=1^ Cookie: JSESSIONID=50210C8660067165EF0B42E0DD2FFD38.vdeavkprimary Content-Type: application/x-www-form-urlencoded Content-Length: 6 back=1 HTTP/1.x 200 OK Date: Thu, 26 Feb 2009 10:36:12 GMT Vary: User-Agent Keep-Alive: timeout=15 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/plain ---------------------------------------------------------- --------------------------------------------------------------------- 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