Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
nikola1
Contributor II
Contributor II

How to create web rule on QlikSense server similar to IIS

Hello,

I need your help!

I have one QlikSense server which is reachable by Public IP address and I want to redirect all my clients to my dns name of QlikSense server if they try to access it by Public IP. I know that this is possible on IIS server in web.config file with below syntax:

<rule name="Redirect IP to DNS" stopProcessing="true">
    <match url="(.*)" />
    <conditions>
    <add input="{HTTP_HOST}" pattern="xxx.xxx.xxx.xxx" />
    </conditions>
    <action type="Redirect" url="https://mydnsname.com" />
</rule>

 

How can I do the same for QlikSense server on which I don`t have IIS web server installed?

Thanks in advance!

Labels (2)
1 Reply
AustinSpivey
Partner - Creator
Partner - Creator

I don't think you'll be able to achieve this using any settings in the QMC itself. You could maybe get hacky with virtual proxy authentication module redirect URIs and redirect pages hosted in a content library, but it would be way more hassle than it'd be worth.

As far as non-QMC options, you could adapt the script shown in this Qlik Support article to redirect traffic to the DNS name whenever the public IP address is used (the script on that page is for upgrading HTTP traffic to HTTPS automatically, so you'd have to change it to fit your use case).

I haven't tested this but it seems like you'd just need to use something like this:

var http = require('http');
http.createServer(function (req, res) {
    res.writeHead(301, { "Location": "https://" + "your-dns-name.com" + req.url });
    res.end();
}).listen(80);

 

Outside of that, though, I'd recommend handling this from an existing (reverse-)proxy in your network or use IIS/NGINX/Apache/Caddy/Traefik as a reverse proxy to handle the redirect.

Austin Spivey | Principal Consultant @ Arc Analytics
ArcAnalytics.us | Add me on LinkedIn