Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have some rules like

<Location /xyz>
    ProxyPass http://example.com/abc
    ...
</Location>

I want to accept requests to http://mypage.lan/xyz/123 and deliver the data of http://example.com/abc/123. I need to accept POST request, but I don't want to send the body content to example.com. I would like to send a GET request, but a POST request with Content-Length: 0 would be fine, too.

Is it possible, to configure Apache 2 not to promote the request body?

share|improve this question

1 Answer 1

No, it's not possible for the body data to be modified in this way by Apache (or to proxy a different method than received). The most modification that it can do is to tweak headers.

I'd question the need for a web service that behaves in this way (just send the right request from the client?), but if you do need to do this, consider using application code running within Apache that modifies the request in the needed ways and creates its own request to the backend server.

share|improve this answer
    
I mean that you could use application code like PHP, perl, or python that can run within Apache, not an Apache module. –  Shane Madden Sep 19 '12 at 20:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.