Mobile app version of vmapp.org
Login or Join
Si4351233

: How to configure apache2 to just save certain POST requests without even passing them to application? I'm running Apache in front of glassfish server using BalancerMember. For performance reasons

@Si4351233

Posted in: #Apache2 #HttpHeaders

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 example.com/upload then the content of the post (body) should go into a file.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Si4351233

1 Comments

Sorted by latest first Latest Oldest Best

 

@Jessie594

What do you mean by specific POST requests. Does your application have some kind of API. Are there parameters in the POST request which you can filter for? If so you may need to do this in your application. For every request that comes in run it through a filter then save the POST requests you want return the status code and allow others to pass.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme