try_files, POST, and redirecting requests to Passenger
Jason R.
lists at ruby-forum.com
Wed Jan 9 14:22:32 UTC 2013
"António P. P. Almeida" <appa at perusio.net> wrote in post #1091574:
> On 9 Jan 2013 00h13 CET, lists at ruby-forum.com wrote:
>
> error_page 418 = @idempotent;
>
> if ($idempotent) {
> return 418;
> }
>
> location @idempotent {
> try_files /maintenance.html @passenger;
> }
I never knew about the map directive, that's quite interesting. One
question though, will this make sure that a POST that hits the
error_page 418 stays a POST when it goes through the @idempotent
location?
Thanks for the info!
Jason
--
Posted via http://www.ruby-forum.com/.
More information about the nginx
mailing list