How to configure apache2 to just save certain POST requests without even passing them to application?

Posted by Robert Grezan on Pro Webmasters See other posts from Pro Webmasters or by Robert Grezan
Published on 2012-12-19T09:08:00Z Indexed on 2012/12/19 11:14 UTC
Read the original article Hit count: 384

Filed under:

I'm running apache in front of glassfish server using BalancerMember.

For performance reasons I would like that POST requests on certain endpoint are just saved to a file without passing them to application (and to return correct HTTP return code).

How to configure apache to do that?

EDIT: In other words, if a POST request is for path "http://example.com/upload" then the content of the post (body) should go into a file.

© Pro Webmasters or respective owner

Related posts about apache2