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

Our company's proxy is a rather typical corporate setup: it man-in-the-middles SSL connections, tries virus-checking on download and so on. As usual, this setup is rather flaky, which often results in broken incomplete downloads. Since we are doing automated Python packaging, we need complete files, so I wanted to setup a caching reverse proxy to https://pypi.python.org to reduce the pain at least a little bit.

The proxy/cache part is no problem with mod_proxy and mod_cache, but the actual problem are incomplete downloads. Since the target server sends a proper Content-Length header, it should be possible to check whether a file is complete before caching and if not, resume that download in a second (and possible third, fourth etc.) try.

Is it possible to implement this with Apache 2.2 with mod_proxy and mod_cache (or any alternative software, like Nginx)?

share|improve this question
All the precious time and productivity these "typical corporate setups" waste everywhere for no good reason except making sure internal IT has a reason to exist. –  al. Feb 20 '14 at 10:28
If it's not properly dealing with partial content out of the box, then it's fundamentally broken. Get rid of it and try something else. –  Michael Hampton Feb 20 '14 at 13:46

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.