static POST

mike mike503 at gmail.com
Wed Nov 19 11:06:05 MSK 2008


Yup I switched to this

        if (!-e $request_filename) {
                rewrite ^/(.*) /controller.php?uri=$request_uri last;
        }

and once again I get POST data.

So something is messed up with error_page and POST data in 0.7.19.
Behavior seems to be the same in 0.7.21 too.


On Wed, Nov 19, 2008 at 12:00 AM, mike <mike503 at gmail.com> wrote:
> I was wondering why my POST data is not populated in PHP...
>
> This is running nginx 0.7.19 right now. I am using the error_page and
> POSTing data to it, and it's not filling in the POST information.
>
> server {
>        listen 80;
>        server_name foo.com;
>        index index.php;
>        root /home/mike/web/foo.com;
>        error_page 404 = /controller.php?uri=$request_uri;
>        location ~ \.php {
>                fastcgi_pass 127.0.0.1:11000;
>        }
> }
>
> Is there something wrong with the configuration, or could the feature
> have relapsed?





More information about the nginx mailing list