Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
HAProxy: Reroute / to /subfolder
« previous
next »
Print
Pages: [
1
]
Author
Topic: HAProxy: Reroute / to /subfolder (Read 10900 times)
mimugmail
Hero Member
Posts: 6766
Karma: 494
HAProxy: Reroute / to /subfolder
«
on:
December 10, 2017, 09:16:36 am »
Another quick guide since I only found stuff for pfsense or HAProxy itself.
This quide is based on plugin version 2.1
- Create a called "root"
- Condition type "Path matches"
- Patch matches "/"
- Create a rule called "rewrite"
- Test type "IF"
- Select conditions choose "root"
- Logical ops is "none"
- Execute function is "http-request redirect"
- HTTP Redirect parameter: code 301 location
http://www.domain.com/subfolder/
- Under Public Services edit your frontend and add "rewrite" to Selected Rules.
Save and you're done!
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: HAProxy: Reroute / to /subfolder
«
Reply #1 on:
December 10, 2017, 03:08:06 pm »
I am not sure if that would fit better into the docs.
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: HAProxy: Reroute / to /subfolder
«
Reply #2 on:
December 10, 2017, 05:34:46 pm »
Yep, but I may not fork it since the licensing with some images is still not fixed
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
HAProxy: Reroute / to /subfolder