Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Web Proxy Filtering and Caching
(Moderator:
fabian
) »
HAProxy use subdir of backend. <solved>
« previous
next »
Print
Pages: [
1
]
Author
Topic: HAProxy use subdir of backend. <solved> (Read 2699 times)
swamp_ig
Newbie
Posts: 2
Karma: 0
HAProxy use subdir of backend. <solved>
«
on:
May 23, 2021, 03:56:20 am »
Hi,
I can't quite figure out how to make this work:
Public URL:
https://backend.myservice.com/
Internal Server:
http://backend.myservice.local/subdir/
I can get the SSL offloading working fine, but I can't figure out how to make the backend always go to a subdirectory, it always ends up in the root directory. A redirect isn't what I want either really.
Thanks for your help!
«
Last Edit: June 04, 2021, 09:28:11 am by swamp_ig
»
Logged
swamp_ig
Newbie
Posts: 2
Karma: 0
Re: HAProxy use subdir of backend.
«
Reply #1 on:
June 04, 2021, 09:27:53 am »
Figured this out.
Needs a rule saying path doesn't start with the subdir, and then a condition with execute function set path "/subdir/%[path]" if the condition is false.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Web Proxy Filtering and Caching
(Moderator:
fabian
) »
HAProxy use subdir of backend. <solved>