Add a Nginx Reverse Proxy to Your LAMP Setup | Linux Today

Add a Nginx Reverse Proxy to Your LAMP Setup

Written By
Web Webster
Web Webster
Sep 2, 2011

[ Thanks to Lee Schlesinger for this link. ]

Rather than give up Apache, you can speed up your current HTTP
server while keeping your current setup (almost) intact by
installing a reverse proxy server in front of it. A reverse proxy
fetches resources from one or more servers and returns them to the
client as if they originated from the proxy server itself. Apache
can act as a reverse proxy with the mod_proxy module, but there is
no actual benefit to running mod_proxy on the same system the
Apache web server runs on, plus it consumes more system
resources.

Therefore, for this setup, we will use an alternative web
server, nginx, which is lighter and more efficient. With this
approach you can have Apache serve all dynamic content and nginx
handle all static files without consuming lots of system resources,
combining the benefits of both servers without changing the whole
infrastructure.


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.