Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Web Proxy Filtering and Caching
(Moderator:
fabian
) »
NginX reverse proxy with a namevirtualhost as backend
« previous
next »
Print
Pages: [
1
]
Author
Topic: NginX reverse proxy with a namevirtualhost as backend (Read 625 times)
bimbar
Sr. Member
Posts: 435
Karma: 25
NginX reverse proxy with a namevirtualhost as backend
«
on:
April 25, 2024, 10:20:08 am »
A customer needs a reverse proxy the backend of which uses different hostnames than the frontend and has 3 websites on it using namevirtualhosts (also using SSL).
So this seems to be doable with haproxy:
- on my frontend, differentiate between the different hostnames via SNI
- the real servers use different custom SNI names, so the backend can differentiate
- a Host header is set for the backend with abovementioned SNI names, or else the backend doesn't switch to the right website
- location headers in the response are rewritten to my frontend names
In apache, one would do this using ProxyPass / ProxyPassReverse, while I didn't test it, this seems fairly simple.
Now correct me if I'm wrong, but this doesn't seem possible with nginx on opnsense, not having the UI elements to specify a custom host header for an upstream?
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Web Proxy Filtering and Caching
(Moderator:
fabian
) »
NginX reverse proxy with a namevirtualhost as backend