Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm kinda new to Apache2 and all the server stuff and I am facing a strange problem

I have set up a reverse proxy in apache.config, so that all the calls with /api/ will be forwarded to port 8015

when I try a Get that does meet meet the requirements for the Restlet server listening on 8015, and server responds with a HTTP 401 to port 80, I then see the 401 on front end(as expected), however, if I launch a valid GET within around 0.5 seconds after the 401, the request is forwarded to port 8015, port 8015 responds properly, but such response is never sent back to the front end

the problem does not appear if I wait for more than like 0.5 seconds after a 401

the problem gets worse if I get multiple 401s, then I have to wait for a longer period of time before I can successfully do a valid Get, the amount of time I have to wait is seemingly proportional to the number of 401s I get

In each failed case, the valid Get is received by port 8015, and a response if sent from port 8015, but not received by front end

after enabling CORS, directly communicating to port 8015 instead of using apache reverse proxy does not have this problem at all, I can do as many as 401s I want and do a successful Get right afterwards

from the observations above, I assume this has something to do with the way Apache2 reverse proxy deals with errors, but I am not sure and have not found much relevant information, any suggestions on how I might approach this problem?

share|improve this question
It sounds like a bug in your servlent - that it's returning a cacheable response - have you checked? How is the proxy configured? – symcbean Jan 27 '13 at 21:11
Show us the config statements. – Iain Jan 27 '13 at 21:25

Your Answer


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

Browse other questions tagged or ask your own question.