Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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've read and heard that nginx can cache dynamic content and make it static so it loads faster taking more of a load of apache. has anyone done this before? is it worth it? any pros/cons to it?

share|improve this question

Your question is somewhat ambiguous, I'll take a guess and assume you mean using nginx as a reverse proxy.

The main benefit of doing this setup, is reduced load. Nginx would optionally serve all static files, and reverse proxy all dynamic generated content. There are major performance benefits to this type of setup, and it can handle more connections. The major drawback is system complexity, you now have two web servers instead of one. It also is considered a more difficult system to administrate. regardless, I believe this is a great setup.

I originally looked at this setup, and then realized I could do everything just from nginx. Once you break everything down, only a very few things are Apache only. You can even set up a static cache all from the one nginx server, less complexity.

I hope I could answer your question.

share|improve this answer

They could be talking about 'proxy_store' --

share|improve this answer

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.