Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4718

Redirect from IP-Adress to FQDN

$
0
0

I would like to redirect the query in the browser “http://192.168.1.1” to the domain “https://opnsense.dummy.tld”. So that the browser recognizes the certificate correctly and does not always get an error message.

In the internet there is an example how to go over a .htaccess - file, but I can’t find the place where I should insert the file.

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^192.168.1.1$
RewriteRule ^(.*)$ https://opnsense.dummy.tld/$1 [L,R=301]

How could it be solved with the HAProxy ?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4718

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>