<?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: Reverse Proxy not working configuration even with expected config in Security</title>
    <link>https://community.splunk.com/t5/Security/Reverse-Proxy-not-working-configuration-even-with-expected/m-p/92399#M3023</link>
    <description>&lt;P&gt;Good News: What you are trying should work.&lt;/P&gt;

&lt;P&gt;Bad News: What you are trying &lt;STRONG&gt;&lt;EM&gt;should&lt;/EM&gt;&lt;/STRONG&gt; work.&lt;/P&gt;

&lt;P&gt;The documentation here may help: &lt;A href="http://wiki.splunk.com/Community:SplunkBehindAProxy"&gt;http://wiki.splunk.com/Community:SplunkBehindAProxy&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The issue is the url re-writing. It looks like some of the urls are not being re-written correctly.&lt;/P&gt;

&lt;P&gt;If you analyze the source of your hung pages, you will likely see references to:&lt;BR /&gt;
&lt;A href="http://server:8000/"&gt;http://server:8000/&lt;/A&gt; &lt;BR /&gt;
or &lt;A href="http://server/"&gt;http://server/&lt;/A&gt;&lt;BR /&gt;
or &lt;A href="https://server:8000/"&gt;https://server:8000/&lt;/A&gt;&lt;BR /&gt;
or &lt;A href="http://server/splunk"&gt;http://server/splunk&lt;/A&gt;&lt;BR /&gt;
instead of the one thing that will work, &lt;A href="https://nginxserver/splunk"&gt;https://nginxserver/splunk&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Once you determine what isn't being re-written correctly, you next step is to write a nginx rewire rule to fix the issue. This is documented here: &lt;A href="http://nginx.org/en/docs/http/ngx_http_rewrite_module.html"&gt;http://nginx.org/en/docs/http/ngx_http_rewrite_module.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Once you have it all working, post back here. I would love to see what you come up with!&lt;/P&gt;</description>
    <pubDate>Wed, 12 Mar 2014 13:18:58 GMT</pubDate>
    <dc:creator>bshuler_splunk</dc:creator>
    <dc:date>2014-03-12T13:18:58Z</dc:date>
    <item>
      <title>Reverse Proxy not working configuration even with expected config</title>
      <link>https://community.splunk.com/t5/Security/Reverse-Proxy-not-working-configuration-even-with-expected/m-p/92396#M3020</link>
      <description>&lt;P&gt;Hi all, &lt;/P&gt;

&lt;P&gt;I finally decided to post and get help from here to deal with Splunk configuration behind a reverse Proxy.&lt;BR /&gt;
I've read and searched for many posts all over the Internet and this forum, found various solutions expected to solve this but still i have some issues.&lt;/P&gt;

&lt;P&gt;I have an internal Reverse Proxy, Nginx running SSL requesting directly Splunk web server, also running SSL. &lt;/P&gt;

&lt;P&gt;This almost works, i can get access to Splunk, login and so on, i can open any application and dashboards with no issue.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;BUT under a few cases, it does not work as expected, some examples:&lt;/STRONG&gt;&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;"Browse" under Manager / Add Input / Files or Directory, the browser windows starts to open with the time clock, and then noting, it keeps running with no end&lt;/LI&gt;
&lt;LI&gt;"Save" button under any Manager function works as the action behind is done (like saving a new file and so on), but the button keeps being reported to "Saving" instead of returning back to previous page in normal time&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;STRONG&gt;My Splunk configuration is:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
&lt;EM&gt;local/web.conf&lt;/EM&gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;root_endpoint = /splunk&lt;BR /&gt;
enableSplunkWebSSL = 1&lt;BR /&gt;
tools.proxy.on = True (--&amp;gt; I tried with and whitout)&lt;BR /&gt;
&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;under nginx:&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
  location /splunk/ {&lt;BR /&gt;
    proxy_pass &lt;A href="https://splunkserver:8000" target="_blank"&gt;https://splunkserver:8000&lt;/A&gt;;&lt;BR /&gt;
    access_log /var/log/nginx/splunk.access.log;&lt;BR /&gt;
    error_log /var/log/nginx/splunk.error.log;&lt;BR /&gt;
    }&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Off course, when requesting directly internally to the Splunk web server, everything works as expected.&lt;/P&gt;

&lt;P&gt;I also tested with Apache running as reverse proxy, and got exactly the same issue.&lt;BR /&gt;
Tried with the reverse proxy running SSL and the Splunk backend running http, same thing.&lt;BR /&gt;
Tried "SSOMode = permissive", no change.&lt;/P&gt;

&lt;P&gt;I searched for any interesting error in nginx logs, and splunk web logs, nothing... all i get is related GET and POST operations with code 200 for GET, so normal...&lt;/P&gt;

&lt;P&gt;I'm suspecting problems with cookie session or something abnormal in http header, or perhaps something related to SSO splunk config, or SSL negociation and cyphers...&lt;BR /&gt;
Getting out of idea!&lt;/P&gt;

&lt;P&gt;Does anyone can help me getting my reverse proxy configuration to work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Tnanks!&lt;/P&gt;

&lt;P&gt;Guilhem &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:08:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Reverse-Proxy-not-working-configuration-even-with-expected/m-p/92396#M3020</guid>
      <dc:creator>guilmxm</dc:creator>
      <dc:date>2020-09-28T13:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse Proxy not working configuration even with expected config</title>
      <link>https://community.splunk.com/t5/Security/Reverse-Proxy-not-working-configuration-even-with-expected/m-p/92397#M3021</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Anyone with a full working reverse proxy configuration ?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2013 09:20:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Reverse-Proxy-not-working-configuration-even-with-expected/m-p/92397#M3021</guid>
      <dc:creator>guilmxm</dc:creator>
      <dc:date>2013-02-01T09:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse Proxy not working configuration even with expected config</title>
      <link>https://community.splunk.com/t5/Security/Reverse-Proxy-not-working-configuration-even-with-expected/m-p/92398#M3022</link>
      <description>&lt;P&gt;Yup.  Reverse https proxy with SSO definitely works.  Have you tried with IIS?  I've not tried with apache or nginx.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2014 01:39:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Reverse-Proxy-not-working-configuration-even-with-expected/m-p/92398#M3022</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2014-02-07T01:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse Proxy not working configuration even with expected config</title>
      <link>https://community.splunk.com/t5/Security/Reverse-Proxy-not-working-configuration-even-with-expected/m-p/92399#M3023</link>
      <description>&lt;P&gt;Good News: What you are trying should work.&lt;/P&gt;

&lt;P&gt;Bad News: What you are trying &lt;STRONG&gt;&lt;EM&gt;should&lt;/EM&gt;&lt;/STRONG&gt; work.&lt;/P&gt;

&lt;P&gt;The documentation here may help: &lt;A href="http://wiki.splunk.com/Community:SplunkBehindAProxy"&gt;http://wiki.splunk.com/Community:SplunkBehindAProxy&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The issue is the url re-writing. It looks like some of the urls are not being re-written correctly.&lt;/P&gt;

&lt;P&gt;If you analyze the source of your hung pages, you will likely see references to:&lt;BR /&gt;
&lt;A href="http://server:8000/"&gt;http://server:8000/&lt;/A&gt; &lt;BR /&gt;
or &lt;A href="http://server/"&gt;http://server/&lt;/A&gt;&lt;BR /&gt;
or &lt;A href="https://server:8000/"&gt;https://server:8000/&lt;/A&gt;&lt;BR /&gt;
or &lt;A href="http://server/splunk"&gt;http://server/splunk&lt;/A&gt;&lt;BR /&gt;
instead of the one thing that will work, &lt;A href="https://nginxserver/splunk"&gt;https://nginxserver/splunk&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Once you determine what isn't being re-written correctly, you next step is to write a nginx rewire rule to fix the issue. This is documented here: &lt;A href="http://nginx.org/en/docs/http/ngx_http_rewrite_module.html"&gt;http://nginx.org/en/docs/http/ngx_http_rewrite_module.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Once you have it all working, post back here. I would love to see what you come up with!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2014 13:18:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Reverse-Proxy-not-working-configuration-even-with-expected/m-p/92399#M3023</guid>
      <dc:creator>bshuler_splunk</dc:creator>
      <dc:date>2014-03-12T13:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse Proxy not working configuration even with expected config</title>
      <link>https://community.splunk.com/t5/Security/Reverse-Proxy-not-working-configuration-even-with-expected/m-p/92400#M3024</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Thank you for answering this quite old post...&lt;/P&gt;

&lt;P&gt;I have no doubt your analysis is right, and probably looking at nginx logs to find hung pages and generate rewrite rules would have corrected the situation.&lt;/P&gt;

&lt;P&gt;But anyway and fortunately, what was not working using Splunk 5 version became to suddenly work with 6th version.&lt;/P&gt;

&lt;P&gt;I guess a few things have been corrected, working with Splunk behind an nginx reverse proxy works like a charm now with the expected configuration.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Mar 2014 21:31:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Reverse-Proxy-not-working-configuration-even-with-expected/m-p/92400#M3024</guid>
      <dc:creator>guilmxm</dc:creator>
      <dc:date>2014-03-16T21:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse Proxy not working configuration even with expected config</title>
      <link>https://community.splunk.com/t5/Security/Reverse-Proxy-not-working-configuration-even-with-expected/m-p/92401#M3025</link>
      <description>&lt;P&gt;Corrected with Splunk 6 version, working with Splunk behind Nginx reverse proxy works perfectly with the configuration above.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Mar 2014 21:32:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Reverse-Proxy-not-working-configuration-even-with-expected/m-p/92401#M3025</guid>
      <dc:creator>guilmxm</dc:creator>
      <dc:date>2014-03-16T21:32:52Z</dc:date>
    </item>
  </channel>
</rss>

