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 have an app that uses HTTP to connect to a server but does not support using an HTTP proxy and I must use an HTTP proxy to get to the server.

I would like to set up a reverse proxy service (it's on a Linux server) that can go through the regular proxy server.


App --> Reverse Proxy ----------> Forward Proxy -------------> Server
|====Localhost=======|   Net      |=Somewhere=|     Net   |=Somewhere Else=|

I've looked at a couple of lightweight reverse proxys but they don't support forwarding through a proxy server. I'd prefer not to run something heavy like apache or squid but if they are the only things that would work, they would do. (Although from apaches docs, it doesn't look like it would work either.)

Any suggestions?

share|improve this question

If your forward proxy server supports transparent proxying, you can just use iptables to redirect HTTP traffic transparently to your forward proxy.

Otherwise, you need to install a proxy server as you described and configure your application to use it as if it is the real server.

share|improve this answer
I have no control over the proxy server. I am looking for software that is preferably lightweight (like tinyproxy), and supports reverse proxying through a forward proxy (Much of the proxy software out there does not support chaining and reverse proxy mode at the same time). – Olson Apr 12 '12 at 14:09

Squid-cache should be able to do this. Look at the "never-direct" settings for configuring it so requests go through a parent instead of directly out. Also check out Apache Traffic Server. It claims to do just about anything! I think the config file is icp.config.

share|improve this answer
Welcome to Server Fault! Generally we like answers on the site to be able to stand on their own - Links are great, but if that link ever breaks the answer should have enough information to still be helpful. Please consider editing your answer to include more detail. See the FAQ for more info. – slm Apr 22 '13 at 15:23

Your Answer


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.