X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_SORBS_DUL X-Spam-Check-By: sourceware.org Message-ID: <4B5A17F0.5080305@cryptelium.net> Date: Fri, 22 Jan 2010 22:26:08 +0100 From: kiorky User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20100114 Shredder/3.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: [1.7] Very odd reverse proxy problem . [nginx -> win32 zope] OpenPGP: id=55851140; url=http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x55851140 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig09BEA0BAC99278DC9123C393" X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --------------enig09BEA0BAC99278DC9123C393 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable The things: * I have a nginx handmade compiled under the hood * I have an official zope+plone installation on native windows * I have a django based application inside the cygwin * I have a tomcat+cas installation on native windows All of that seem to be configured correctly. What i want to do is to make my nginx a reverse proxy of the 3 others appli= cations. Because of some other application needs (wsgi served with flup/socket) i ne= ed that nginx to live inside the cygwin installation. That's not my concern afterall :). The nginx works well for static contents and as the the django and tomcat installations reverse proxy. Here come problems with zope+plone. If i hit my http://url/plone (nginx mapped point to the plone install as ht= tp reverse proxy), the first request (get /) pass, but the other stall as 206 partial content and are very long to be satisfied. The browser seems to be blocked on some read() call. I tried a bunch of things nginx side (use epoll, use select, tweak proxy parameters, stop proxy buffering, set timeouts, set retrys and so on) but i= have not found the right configuration if it is there. But where it is very strange is that if i make an ssh tunnel from localhost= :80 to prod_machine:localhost:80, then make some entry into my /etc/hosts to fa= ke the dns name. Then browse to http://myurl/plone, no problem, i have the con= tent, and all http request are satisfied (js & co.). I really don't know how to debug that, can it be because the request enter = from cygwin, go out to windows re enter cygwin and go for the client? The fact that throught the ssh tunnel, when i hit the nginx server on my pl= one install (like "as normal", i dont hit plone but nginx) work perfectly lives= me without words. Other strange thing is that the CAS application, also http reverse proxified work like a charm. Other thing is that if i use the windows nginx binary from nginx website, w= ith equal configuration, it works. The only thing is nginx running out of cygwin stack and compiled for win32. If someone has some suggestions .... --=20 Cordialement, KiOrKY GPG Key FingerPrint: 0x1A1194B7681112AF --------------enig09BEA0BAC99278DC9123C393 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAktaF/UACgkQ6Hy4NVWFEUCdcACaA5OhSwUBmdr1zljI19R6uAZB yz4AmgJa+bUpLy1BgjbbWDrb2WtlUScG =01OJ -----END PGP SIGNATURE----- --------------enig09BEA0BAC99278DC9123C393--