Forum: NGINX followup to question about $_POST

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Chris Cortese (Guest)
on 2009-03-01 09:35
(Received via mailing list)
I found this thread: http://www.ruby-forum.com/topic/162377
So, apparently, using the error page to reroute /mycontroller/mymethod
URLs, does not forward the $_POST array.

I don't really understand how to use the patch, and I wonder if the
patch is still recommended?  Since it was from last August...

/mycontroller/mymethod is very common across many PHP MVC frameworks.
Is using the "error" directive really the appropriate way to do this?  I
tried going back to:

location / {
    if ($request_filename !~ (js|css|images|robots\.txt|index\.php.*) )
{
      rewrite ^/(.*)$ /index.php/$1 last;
    }
}

also tried
location / {
    if ($request_filename !~ (js|css|images|robots\.txt|index\.php.*) )
{
      rewrite ^/(.*)$ /index.php?q=$1 last;
    }
}
both of these methods are recommended on CodeIgniter forums, and I had
them working previously with nginx 0.6.33

...and now I get 404...
This topic is locked and can not be replied to.