<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>nginx &amp;mdash; Kuba Kodzi</title>
    <link>https://blog.kuba-orlik.name/kodzi/tag:nginx</link>
    <description></description>
    <pubDate>Fri, 08 May 2026 19:53:54 +0200</pubDate>
    <item>
      <title>Podmiana treści html-a w nginx gdy używamy proxy_pass</title>
      <link>https://blog.kuba-orlik.name/kodzi/podmiana-tresci-html-a-w-nginx-gdy-uzywamy-proxy_pass</link>
      <description>&lt;![CDATA[Dzisiaj napotkałem potrzebę podmiany treści html-a za pomocą nginx-a służącego za reverse proxy. Dowiedziałem się o istnieniu modułu subfilter:&#xA;&#xA;http://nginx.org/en/docs/http/ngxhttpsubmodule.html&#xA;&#xA;jednak nie działał on w połączeniu z proxypass. &#xA;&#xA;Dodanie:&#xA;&#xA;proxysetheader Accept-Encoding &#34;&#34;; &#xA;&#xA;rozwiązało problem, co tłumaczy ten komentarz na SO&#xA;&#xA;#hotfix #nginx]]&gt;</description>
      <content:encoded><![CDATA[<p>Dzisiaj napotkałem potrzebę podmiany treści html-a za pomocą nginx-a służącego za reverse proxy. Dowiedziałem się o istnieniu modułu <code>sub_filter</code>:</p>

<p><a href="http://nginx.org/en/docs/http/ngx_http_sub_module.html" rel="nofollow">http://nginx.org/en/docs/http/ngx_http_sub_module.html</a></p>

<p>jednak nie działał on w połączeniu z <code>proxy_pass</code>.</p>

<p>Dodanie:</p>

<pre><code>proxy_set_header Accept-Encoding &#34;&#34;; 
</code></pre>

<p>rozwiązało problem, co tłumaczy <a href="https://serverfault.com/questions/547060/why-does-sub-filter-seem-to-not-work-when-used-in-conjunction-with-proxy-pass#comment763096_548946" rel="nofollow">ten komentarz na SO</a></p>

<p><a href="/kodzi/tag:hotfix" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">hotfix</span></a> <a href="/kodzi/tag:nginx" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">nginx</span></a></p>
]]></content:encoded>
      <guid>https://blog.kuba-orlik.name/kodzi/podmiana-tresci-html-a-w-nginx-gdy-uzywamy-proxy_pass</guid>
      <pubDate>Sun, 18 Apr 2021 11:59:03 +0200</pubDate>
    </item>
  </channel>
</rss>