<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Reverse-Proxy on homelab</title>
    <link>https://homelab.nbkelley.com/tags/reverse-proxy/</link>
    <description>Recent content in Reverse-Proxy on homelab</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Fri, 28 Mar 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://homelab.nbkelley.com/tags/reverse-proxy/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Web Server Stack (Nginx &#43; Apache)</title>
      <link>https://homelab.nbkelley.com/docs/services/web-server-stack/</link>
      <pubDate>Fri, 28 Mar 2025 00:00:00 +0000</pubDate>
      <guid>https://homelab.nbkelley.com/docs/services/web-server-stack/</guid>
      <description>&lt;h1 id=&#34;web-server-stack-nginx--apache&#34;&gt;Web Server Stack (Nginx + Apache)&lt;a class=&#34;anchor&#34; href=&#34;#web-server-stack-nginx--apache&#34;&gt;#&lt;/a&gt;&lt;/h1&gt;&#xA;&lt;h2 id=&#34;what-was-established&#34;&gt;What Was Established&lt;a class=&#34;anchor&#34; href=&#34;#what-was-established&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;In this setup, Nginx is utilized as a high-performance reverse proxy to handle incoming traffic and static content, while Apache serves as the backend for dynamic content (e.g., PHP/WordPress) due to its flexible &lt;code&gt;.htaccess&lt;/code&gt; support.&lt;/p&gt;&#xA;&lt;h2 id=&#34;key-decisions&#34;&gt;Key Decisions&lt;a class=&#34;anchor&#34; href=&#34;#key-decisions&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Architecture&lt;/strong&gt;: Nginx acts as the entry point (Port 80/443) and proxies requests to Apache running on a non-standard port (e.g., 8080).&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Rationale&lt;/strong&gt;: Leverages Nginx&amp;rsquo;s superior concurrency and static content handling with Apache&amp;rsquo;s ease of use for per-directory configuration.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;current-configuration&#34;&gt;Current Configuration&lt;a class=&#34;anchor&#34; href=&#34;#current-configuration&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;h3 id=&#34;apache-backend-configuration&#34;&gt;Apache Backend Configuration&lt;a class=&#34;anchor&#34; href=&#34;#apache-backend-configuration&#34;&gt;#&lt;/a&gt;&lt;/h3&gt;&#xA;&lt;p&gt;Modify &lt;code&gt;/etc/apache2/ports.conf&lt;/code&gt; to listen on a different port to avoid conflict with Nginx:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
