<?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 Why am I getting errors with my Apache proxy and Splunk configuration running on the same server? in Security</title>
    <link>https://community.splunk.com/t5/Security/Why-am-I-getting-errors-with-my-Apache-proxy-and-Splunk/m-p/168581#M4971</link>
    <description>&lt;P&gt;I have an Apache proxy running on the same server (CentOS 6) as Splunk (v 6.1.4).&lt;/P&gt;

&lt;P&gt;My proxy config looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ProxyPass /splunk &lt;A href="http://127.0.0.1:8001/splunk" target="test_blank"&gt;http://127.0.0.1:8001/splunk&lt;/A&gt; 
ProxyPassReverse /splunk &lt;A href="http://127.0.0.1:8001/splunk" target="test_blank"&gt;http://127.0.0.1:8001/splunk&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk is running on port 8001 because something else is already running on port 8000.&lt;/P&gt;

&lt;P&gt;In my /opt/splunk/etc/system/local/web.conf I have:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;httpport = 8001
root_endpoint = /splunk
enableSplunkWebSSL = True
tools.proxy.on = True (I have tried both True and False here)
trustedIP=127.0.0.1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After I restart both Apache and Splunk, I get the following in my browser:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /splunk.

Reason: Error reading from remote server
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In my logs I am getting the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(104)Connection reset by peer: proxy: error reading status line from remote server 127.0.0.1
proxy: Error reading from remote server returned by /splunk
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have port 8001 open through IP tables.  I have been following the documentation from the Splunk but nothing seems to be working.  Any help will be greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Oct 2014 22:42:43 GMT</pubDate>
    <dc:creator>rccscalum</dc:creator>
    <dc:date>2014-10-15T22:42:43Z</dc:date>
    <item>
      <title>Why am I getting errors with my Apache proxy and Splunk configuration running on the same server?</title>
      <link>https://community.splunk.com/t5/Security/Why-am-I-getting-errors-with-my-Apache-proxy-and-Splunk/m-p/168581#M4971</link>
      <description>&lt;P&gt;I have an Apache proxy running on the same server (CentOS 6) as Splunk (v 6.1.4).&lt;/P&gt;

&lt;P&gt;My proxy config looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ProxyPass /splunk &lt;A href="http://127.0.0.1:8001/splunk" target="test_blank"&gt;http://127.0.0.1:8001/splunk&lt;/A&gt; 
ProxyPassReverse /splunk &lt;A href="http://127.0.0.1:8001/splunk" target="test_blank"&gt;http://127.0.0.1:8001/splunk&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk is running on port 8001 because something else is already running on port 8000.&lt;/P&gt;

&lt;P&gt;In my /opt/splunk/etc/system/local/web.conf I have:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;httpport = 8001
root_endpoint = /splunk
enableSplunkWebSSL = True
tools.proxy.on = True (I have tried both True and False here)
trustedIP=127.0.0.1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After I restart both Apache and Splunk, I get the following in my browser:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /splunk.

Reason: Error reading from remote server
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In my logs I am getting the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(104)Connection reset by peer: proxy: error reading status line from remote server 127.0.0.1
proxy: Error reading from remote server returned by /splunk
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have port 8001 open through IP tables.  I have been following the documentation from the Splunk but nothing seems to be working.  Any help will be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2014 22:42:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Why-am-I-getting-errors-with-my-Apache-proxy-and-Splunk/m-p/168581#M4971</guid>
      <dc:creator>rccscalum</dc:creator>
      <dc:date>2014-10-15T22:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting errors with my Apache proxy and Splunk configuration running on the same server?</title>
      <link>https://community.splunk.com/t5/Security/Why-am-I-getting-errors-with-my-Apache-proxy-and-Splunk/m-p/168582#M4972</link>
      <description>&lt;P&gt;You have a mismatch in protocols there.   You have told splunk to use SSL (enableSplunkWebSSL = True) but your proxy is set to just do http.&lt;/P&gt;

&lt;P&gt;So either update the splunk web.conf to have&lt;BR /&gt;
enableSplunkWebSSL = False&lt;/P&gt;

&lt;P&gt;Or in your Apache update the config to be:&lt;/P&gt;

&lt;P&gt;SSLProxyEngine On&lt;BR /&gt;
ProxyPass /splunk &lt;A href="https://127.0.0.1:8001/splunk"&gt;https://127.0.0.1:8001/splunk&lt;/A&gt; &lt;BR /&gt;
ProxyPassReverse /splunk &lt;A href="https://127.0.0.1:8001/splunk"&gt;https://127.0.0.1:8001/splunk&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2015 16:13:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Why-am-I-getting-errors-with-my-Apache-proxy-and-Splunk/m-p/168582#M4972</guid>
      <dc:creator>czzpl9</dc:creator>
      <dc:date>2015-03-11T16:13:53Z</dc:date>
    </item>
  </channel>
</rss>

