Re: X-Forwarded-For

2012-10-14 Thread pangj
Thanks for all the answers. 于 2012-10-15 7:39, Cees Hek 写道: On Mon, Oct 15, 2012 at 8:25 AM, Perrin Harkins mailto:per...@elem.com>> wrote: On Sat, Oct 13, 2012 at 7:41 AM, pangj mailto:pa...@riseup.net>> wrote: > In nginx's config file we have added the x-forwarded-for header. >

Re: X-Forwarded-For

2012-10-14 Thread Cees Hek
On Mon, Oct 15, 2012 at 8:25 AM, Perrin Harkins wrote: > On Sat, Oct 13, 2012 at 7:41 AM, pangj wrote: > > In nginx's config file we have added the x-forwarded-for header. > > With modperl (MP2) how to get this header? > > Use headers_in(): > http://perl.apache.org/docs/2.0/api/Apache2/RequestRe

Re: X-Forwarded-For

2012-10-14 Thread Perrin Harkins
On Sat, Oct 13, 2012 at 7:41 AM, pangj wrote: > In nginx's config file we have added the x-forwarded-for header. > With modperl (MP2) how to get this header? Use headers_in(): http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_headers_in_ - Perrin

Re: Coupling Plack/PSGI with mod_perl, or an alternate architecture?

2012-10-14 Thread Perrin Harkins
On Sun, Oct 14, 2012 at 2:56 PM, Tatsuhiko Miyagawa wrote: > I think Lars meant no proxy required with *mod_perl* rather than plack > stuff, but yes, Starman is recommended to put behind proxy otherwise > your precious worker process is bound to slow networked clients, and > gets even worse if you

Re: Coupling Plack/PSGI with mod_perl, or an alternate architecture?

2012-10-14 Thread Tatsuhiko Miyagawa
i would use nginx but lighttpd or apache (mod_proxy), squid, varnish, anything would do. On Sun, Oct 14, 2012 at 12:31 PM, Andreas Mock wrote: > Hi Tatsuhiko, > > which proxy do you use in front? > > Best regards > McA > > > -Ursprüngliche Nachricht- > Von: Tatsuhiko Miyagawa [mailto:miya

AW: Coupling Plack/PSGI with mod_perl, or an alternate architecture?

2012-10-14 Thread Andreas Mock
Hi Tatsuhiko, which proxy do you use in front? Best regards McA -Ursprüngliche Nachricht- Von: Tatsuhiko Miyagawa [mailto:miyag...@gmail.com] Gesendet: Sonntag, 14. Oktober 2012 20:57 An: modperl@perl.apache.org Betreff: Re: Coupling Plack/PSGI with mod_perl, or an alternate architectu

Re: Coupling Plack/PSGI with mod_perl, or an alternate architecture?

2012-10-14 Thread Tatsuhiko Miyagawa
On Fri, Oct 12, 2012 at 11:59 AM, Fred Moyer wrote: > > - A stable history of distribution packaging. Odds are the platform > you are using has mod_perl / Apache rpms/deb/ebuilds/etc for quite > some time. These days more developers want to build (and even deploy) their own perl using tools such

Re: Coupling Plack/PSGI with mod_perl, or an alternate architecture?

2012-10-14 Thread Tatsuhiko Miyagawa
On Fri, Oct 12, 2012 at 12:26 PM, Perrin Harkins wrote: > On Wed, Oct 10, 2012 at 3:57 PM, Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯 wrote: >>> reasons to pick a mod_perl approach over a plack runner approach >> Requires no proxying. > > Isn't Starman normally run with a proxy in front of it? If not, it > should be. Ot