Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
HAproxy www to non-www
« previous
next »
Print
Pages: [
1
]
Author
Topic: HAproxy www to non-www (Read 1793 times)
paul199513
Newbie
Posts: 12
Karma: 0
HAproxy www to non-www
«
on:
December 19, 2021, 12:50:27 am »
Hey everyone, currently i am playing around with the HAproxy feature of the OPNsense Firewall. I need to redirect
https://www.example.com
to
https://example.com
and don‘t know, how i could achieve this.
Hopefully somebody could help me
Logged
CapJak
Newbie
Posts: 2
Karma: 0
Re: HAproxy www to non-www
«
Reply #1 on:
March 05, 2022, 04:41:03 pm »
Did you ever figure this out?
Logged
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: HAproxy www to non-www
«
Reply #2 on:
March 05, 2022, 11:49:06 pm »
I'm not knowledgeable on haproxy but I would probably do a condition and a rule.
First I'd create a condition "Traffic is HTTP".
Then a rule that would use that condition, and execute a "http-request redirect".
Then compare the result config with the manual
http://cbonte.github.io/haproxy-dconv/2.4/configuration.html#4-redirect
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
HAproxy www to non-www