# Apache Response Header Setting

**URL:** <https://forum.knime.com/t/apache-response-header-setting/83524>\
**Category:** KNIME Server\
**Created:** [September 27, 2024, 11:29am UTC](https://forum.knime.com/t/apache-response-header-setting/83524 "2024-09-27T11:29:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![b\_kochs](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/b/2acd7d/32.png) [@b\_kochs](https://forum.knime.com/u/b_kochs)\
**Post date:** [September 27, 2024, 11:29am UTC](https://forum.knime.com/t/apache-response-header-setting/83524/1 "2024-09-27T11:29:54Z")

</div>

Hello

this is more a apache web server question, but evt. some people have been confrontated with this problem,  
because you have to operate the knime-server behind a Web-Server.

I have analyzed the Knime Analytic Platform Url with google chrome :  
[https://server.de/knime\_cloud\_prod/rest/v4/auth/session](https://server.de/knime_cloud_prod/rest/v4/auth/session) for example.  
Just interrupt the logon mask and do right click analyse .  
Go to the Network tab and press Ctrl+R  
Then login to the knime-server giving the right credentials.  
Then click on Name:session and notify Response Header :Location  
On one Server it starts with http (where KnimeAP does not work) and on the other it starts with https (where KnimeAP works)

Both analyzed Servers have a status code : 307 Temporary redirect (in the general section they are not different)  
In this case Java responses errors which are missleading (in my opinion).  
After enabling a firewall rule for port 80 KnimeAP was able to connect still having a connection url like:  
[https://CloudWebServer.de/knime\_cloud](https://CloudWebServer.de/knime_cloud)  
The underlying connection is not encrypted while the setting pretends to be a encrypted connection.

Which setting in the Apache configuration will return a response header starting with https?

Browser-Url (Webserver for Knime-Test:) : [https://CloudWebServer.de/knime\_cloud/rest/v4/auth/session](https://CloudWebServer.de/knime_cloud/rest/v4/auth/session)  
Info:KnimeAP:2024-09-27 12:37:43,962 : DEBUG : main : : ExplorerServerContentProvider : : : Login to ‘knime-test-server’ failed: HTTP 307 Temporary Redirect  
Network  
Response Headers  
Location:[http://CloudWebServer.de/knime\_cloud/rest/v4/auth/session](http://CloudWebServer.de/knime_cloud/rest/v4/auth/session)…

* * *

Browser-Url (Webserver for Knime-Production) : [https://OldWebServer.de/knime\_cloud\_prod/rest/v4/auth/session](https://OldWebServer.de/knime_cloud_prod/rest/v4/auth/session)  
Info:KnimeAP is working with the current config  
Network  
Response Headers  
Location:[https://OldWebServer.de/knime\_cloud\_prod/rest/v4/auth/session](https://OldWebServer.de/knime_cloud_prod/rest/v4/auth/session)…

* * *

Greetings B.Kochs

---

<div class="post-metadata">

**Author:** ![b\_kochs](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/b/2acd7d/32.png) [@b\_kochs](https://forum.knime.com/u/b_kochs)\
**Post date:** [September 30, 2024, 4:25pm UTC](https://forum.knime.com/t/apache-response-header-setting/83524/2 "2024-09-30T16:25:35Z")

</div>

Hello  
after diving into the net I finally found the working solution:  
Simply put this line into the ssl.conf: section: :  
Header edit Location ^http://(.\*)$ https://$1

Source:

> <https://serverfault.com/questions/567966/http-in-the-location-header-when-the-original-request-was-made-over-https>

Greetings B.Kochs

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [December 29, 2024, 4:25pm UTC](https://forum.knime.com/t/apache-response-header-setting/83524/3 "2024-12-29T16:25:45Z")

</div>

Closed on December 29, 2024, 4:25pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
