<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Content Encoding Error when running Splunk from behind a reverse-proxy in Security</title>
    <link>https://community.splunk.com/t5/Security/Content-Encoding-Error-when-running-Splunk-from-behind-a-reverse/m-p/37390#M1258</link>
    <description>&lt;P&gt;Since all URI's in Splunkweb are typlically prefix by the locale, you should be able to create to reverse proxy settings just using the /en-US part (without using the HTML rewite stuff)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ProxyPreserveHost On
ProxyPass /en-US &lt;A href="http://127.0.0.1:8000/en-US" target="test_blank"&gt;http://127.0.0.1:8000/en-US&lt;/A&gt;
ProxyPassReverse /en-US &lt;A href="http://127.0.0.1:8000/en-US" target="test_blank"&gt;http://127.0.0.1:8000/en-US&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In addition you could create a redirect rule to forward requests to /splunk to the /en-US&lt;/P&gt;</description>
    <pubDate>Thu, 16 Aug 2012 21:31:44 GMT</pubDate>
    <dc:creator>ziegfried</dc:creator>
    <dc:date>2012-08-16T21:31:44Z</dc:date>
    <item>
      <title>Content Encoding Error when running Splunk from behind a reverse-proxy</title>
      <link>https://community.splunk.com/t5/Security/Content-Encoding-Error-when-running-Splunk-from-behind-a-reverse/m-p/37389#M1257</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I am encountering an error, "Content Encoding Error, The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression." when I attempt to access Splunk from behind a reverse-proxy running through apache. Splunk works fine when being access directly and not through the proxy. &lt;/P&gt;

&lt;P&gt;Anyone know what may be causing this?&lt;/P&gt;

&lt;P&gt;My /opt/splunk/etc/system/local/web.conf is as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  [settings]
  enableSplunkWebSSL = 0
  tools.proxy.on = True
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;While my proxy configuration is....&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  ProxyRequests Off
  ProxyPreserveHost On
  ProxyHTMLEnable On

  ProxyPass /splunk/ &lt;A href="http://localhost:8000/" target="test_blank"&gt;http://localhost:8000/&lt;/A&gt;
  ProxyPassReverse /splunk/ &lt;A href="http://127.0.0.1:8000/" target="test_blank"&gt;http://127.0.0.1:8000/&lt;/A&gt;
  ProxyPass /en-US &lt;A href="http://127.0.0.1:8000/en-US" target="test_blank"&gt;http://127.0.0.1:8000/en-US&lt;/A&gt;
  ProxyPassReverse /en-US &lt;A href="http://127.0.0.1:8000/en-US" target="test_blank"&gt;http://127.0.0.1:8000/en-US&lt;/A&gt;
  ProxyPass /static &lt;A href="http://127.0.0.1:8000/static" target="test_blank"&gt;http://127.0.0.1:8000/static&lt;/A&gt;
  ProxyPassReverse /static &lt;A href="http://127.0.0.1:8000/static" target="test_blank"&gt;http://127.0.0.1:8000/static&lt;/A&gt;
  ProxyPass /manager &lt;A href="http://127.0.0.1:8000/manager" target="test_blank"&gt;http://127.0.0.1:8000/manager&lt;/A&gt;
  ProxyPassReverse /manager &lt;A href="http://127.0.0.1:8000/manager" target="test_blank"&gt;http://127.0.0.1:8000/manager&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried googling about and have yet to find anyone else who has experienced this issue before so I am hoping someone here may have an idea!&lt;/P&gt;

&lt;P&gt;Thanks for all the help! &lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2012 18:25:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Content-Encoding-Error-when-running-Splunk-from-behind-a-reverse/m-p/37389#M1257</guid>
      <dc:creator>zyamada</dc:creator>
      <dc:date>2012-08-16T18:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Content Encoding Error when running Splunk from behind a reverse-proxy</title>
      <link>https://community.splunk.com/t5/Security/Content-Encoding-Error-when-running-Splunk-from-behind-a-reverse/m-p/37390#M1258</link>
      <description>&lt;P&gt;Since all URI's in Splunkweb are typlically prefix by the locale, you should be able to create to reverse proxy settings just using the /en-US part (without using the HTML rewite stuff)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ProxyPreserveHost On
ProxyPass /en-US &lt;A href="http://127.0.0.1:8000/en-US" target="test_blank"&gt;http://127.0.0.1:8000/en-US&lt;/A&gt;
ProxyPassReverse /en-US &lt;A href="http://127.0.0.1:8000/en-US" target="test_blank"&gt;http://127.0.0.1:8000/en-US&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In addition you could create a redirect rule to forward requests to /splunk to the /en-US&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2012 21:31:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Content-Encoding-Error-when-running-Splunk-from-behind-a-reverse/m-p/37390#M1258</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2012-08-16T21:31:44Z</dc:date>
    </item>
  </channel>
</rss>

