static POST
Igor Sysoev
is at rambler-co.ru
Tue Aug 19 15:30:55 MSD 2008
On Tue, Aug 19, 2008 at 12:25:29PM +0100, Igor Clark wrote:
> Just FYI it seems to work the same on Linux and means the location-
> only configs on loads of our existing projects are good to go without
> if constructs.
>
> Thanks!
OK, I will merged in next 0.6.33.
> On 18 Aug 2008, at 22:12, Igor Clark wrote:
>
> >I've tried it on OSX/10.5.2 at home and it works. Fantastic. I'll
> >try it on Linux at work tomorrow and see how it works with some of
> >the projects there.
> >
> >This is great news; if it works out then I'll be able to use the
> >named location config style in a lot of our projects.
> >
> >Thank you, Igor!
> >
> >----- Original Message -----
> >From: Igor Sysoev <is at rambler-co.ru>
> >To: nginx at sysoev.ru
> >Sent: Mon, 18 Aug 2008 19:16:08 +0100 (BST)
> >Subject: Re: static POST
> >
> >On Mon, Aug 18, 2008 at 07:07:27PM +0100, Igor Clark wrote:
> >
> >>I've applied the patch to a fresh copy of 0.6.32 and I'm having the
> >>same problems POSTing to named locations.
> >>
> >>Configuration:
> >>
> >> location / {
> >> index index.php;
> >> error_page 404 = @phpapp;
> >> }
> >>
> >> location @phpapp {
> >> fastcgi_pass 127.0.0.1:9000;
> >> fastcgi_index index.php;
> >> fastcgi_param SCRIPT_FILENAME $document_root/test.php;
> >> fastcgi_param SCRIPT_URL $fastcgi_script_name; #
> >> for use in particular PHP framework
> >> include fastcgi_params;
> >> }
> >>
> >>Form:
> >>
> >> <form method="GET" action="/blah"> <input type="text" name="value">
> >><input type="submit"> </form>
> >>
> >>PHP script:
> >>
> >> <pre><? print_r($_SERVER); ?></pre>
> >>
> >>This configuration works as expected. When I change the form method
> >>to
> >>POST
> >>
> >> <form method="POST" action="/blah"> <input type="text" name="value">
> >><input type="submit"> </form>
> >>
> >>and submit the form, the client hangs, and I get the attached debug
> >>from nginx, the connection only apparently closing because I press
> >>the
> >>browser's "stop" button, and an internal nginx 499 is generated.
> >>
> >>Any ideas what's happening?
> >
> >Try attached additional patch.
> >
> >
> >--
> >Igor Sysoev
> >http://sysoev.ru/en/
> >
> >
> >
>
> --
> Igor Clark ? POKE ? 10 Redchurch Street ? E2 7DD ? +44 (0)20 7749 5355
> ? www.pokelondon.com
>
>
>
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list