<?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 http redirect in Visualization and Usability</title>
    <link>https://community.qlik.com/t5/Visualization-and-Usability/http-redirect/m-p/1887038#M199241</link>
    <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have configured SSL in our qlik server.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are facing issue with http redirect. When we type the Qlik url its automatically goes to &lt;A href="http://---" target="_blank"&gt;http://domain.com .&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;How to redirect&amp;nbsp; into https.&lt;/P&gt;
&lt;P&gt;we have followed the below steps. But its not worked&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;Create a folder named&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;route2https&amp;nbsp;&lt;/SPAN&gt;in&amp;nbsp;&lt;SPAN&gt;C:\Program Files\Qlik\Sense\ServiceDispatcher\Node\&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Create&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;server.js&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;file in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;route2https&amp;nbsp;&lt;/SPAN&gt;folder, paste this code in to it and save:&lt;/P&gt;
&lt;PRE&gt;// Redirect from http port 80 to https
var http = require('http');
http.createServer(function (req, res) {
   res.writeHead(301, { "Location": "https://" + req.headers['host'] + req.url });
   res.end();
}).listen(80);&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;3.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Edit&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;C:\Program Files\Qlik\Sense\ServiceDispatcher\services.con&lt;/SPAN&gt;f file and paste the following code into it at the end:&lt;/P&gt;
&lt;PRE&gt;[httproute]
Identity=Qlik.httproute
Enabled=true
DisplayName=httproute
ExecType=nodejs
ExePath=Node\node.exe
Script=Node\route2https\server.js&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;4.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Restart the Qlik Sense Service Dispatcher service&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jan 2022 11:42:41 GMT</pubDate>
    <dc:creator>excelledia</dc:creator>
    <dc:date>2022-01-31T11:42:41Z</dc:date>
    <item>
      <title>http redirect</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/http-redirect/m-p/1887038#M199241</link>
      <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have configured SSL in our qlik server.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are facing issue with http redirect. When we type the Qlik url its automatically goes to &lt;A href="http://---" target="_blank"&gt;http://domain.com .&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;How to redirect&amp;nbsp; into https.&lt;/P&gt;
&lt;P&gt;we have followed the below steps. But its not worked&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;Create a folder named&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;route2https&amp;nbsp;&lt;/SPAN&gt;in&amp;nbsp;&lt;SPAN&gt;C:\Program Files\Qlik\Sense\ServiceDispatcher\Node\&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Create&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;server.js&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;file in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;route2https&amp;nbsp;&lt;/SPAN&gt;folder, paste this code in to it and save:&lt;/P&gt;
&lt;PRE&gt;// Redirect from http port 80 to https
var http = require('http');
http.createServer(function (req, res) {
   res.writeHead(301, { "Location": "https://" + req.headers['host'] + req.url });
   res.end();
}).listen(80);&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;3.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Edit&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;C:\Program Files\Qlik\Sense\ServiceDispatcher\services.con&lt;/SPAN&gt;f file and paste the following code into it at the end:&lt;/P&gt;
&lt;PRE&gt;[httproute]
Identity=Qlik.httproute
Enabled=true
DisplayName=httproute
ExecType=nodejs
ExePath=Node\node.exe
Script=Node\route2https\server.js&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;4.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Restart the Qlik Sense Service Dispatcher service&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 11:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/http-redirect/m-p/1887038#M199241</guid>
      <dc:creator>excelledia</dc:creator>
      <dc:date>2022-01-31T11:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: http redirect</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/http-redirect/m-p/1887050#M199242</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/163658"&gt;@excelledia&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;QlikSense uses HTTPS by default and HTTP is not allowed, have you turned it on? If so, what happens when you turn it off?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;QlikSense should not behave this way. We should not any redirect at all.&lt;/P&gt;&lt;P&gt;Are you sure that it is QlikSense Proxy that does the redirect?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 12:14:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/http-redirect/m-p/1887050#M199242</guid>
      <dc:creator>Maria_Halley</dc:creator>
      <dc:date>2022-01-31T12:14:35Z</dc:date>
    </item>
  </channel>
</rss>

