Security

Redirect http to https page

hmahendrakumar
Path Finder

We are trying to enable https(SSL) for splunk web.
While trying the settings I found that the old page or link (with http prefix) doesn't get redirected to the new page(with https prefix). The old link just goes to a blank page.
How can this be achieved ?

Tags (1)

dwaddle
SplunkTrust
SplunkTrust

Splunk only listens on HTTP OR HTTPS - not both at the same time. To work around this, you could install a 3rd party HTTP server and have it listen on the HTTP port and provide redirects into Splunkweb.

If this functionality is important to, you can always submit an enhancement request with Splunk support asking for the ability to redirect from HTTP to HTTPS.

dokaas_2
Path Finder

Seems like Splunk should incorporate that feature; however, as far as I can tell they haven't.  My work around has been to:

1.  Run Splunk https on port 8443.

2.  Install lighttp light web server that redirects http port 80 to https port 8443.

3.  Run firewalld and redirect port 443 to port 8443.

0 Karma

vdubgeek
New Member

Would this be possible if we're redirecting from HTTP:8000 to HTTPS:8000? It seems that if splunkweb has bound to 8000 for SSL, that it wouldn't be possible to have a 3rd party web server bind to 8000 as well for non-ssl. Is that not the case?

0 Karma

hmahendrakumar
Path Finder

Ya. I saw that part about either http or https port. I just want to make sure before looking at other options outside of splunk.

0 Karma
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...