Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
17.7 Legacy Series
»
HAProxy Reverse Proxy with subdomains
« previous
next »
Print
Pages: [
1
]
Author
Topic: HAProxy Reverse Proxy with subdomains (Read 9485 times)
mvdheuvel
Newbie
Posts: 11
Karma: 0
HAProxy Reverse Proxy with subdomains
«
on:
December 30, 2017, 10:05:30 am »
Hi,
I am struggling a while with HAProxy plugin.
I have a single IP address and a single domain name.
I have a VMware server with multiple webservers.
I want to configure reverse proxy, so that I can use my single domain name with multiple domain.
Example.
support.example.com --> server1
www.example.com
--> server2
transfer.example.com --> server3
nextcloud.example.com --> server4
(internet address) --> opnSense --> webserverX (VMware)
I am not able to find the right answers in all the fora.
Can someone help me with this question if it is possible with opnSense, I starting to think opnSense is not the right solution for this environment.
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: HAProxy Reverse Proxy with subdomains
«
Reply #1 on:
December 30, 2017, 12:50:41 pm »
https://docs.opnsense.org/manual/how-tos/haproxy.html
Logged
mvdheuvel
Newbie
Posts: 11
Karma: 0
Re: HAProxy Reverse Proxy with subdomains
«
Reply #2 on:
December 30, 2017, 03:47:16 pm »
I have followed that guide, but no luck with it.
It will always resolve to the latest made frontend.
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: HAProxy Reverse Proxy with subdomains
«
Reply #3 on:
December 30, 2017, 03:52:16 pm »
Then probably something went wrong in Step 4 - it connects your hostname to a backend server.
Logged
mvdheuvel
Newbie
Posts: 11
Karma: 0
Re: HAProxy Reverse Proxy with subdomains
«
Reply #4 on:
December 30, 2017, 05:28:15 pm »
Thanks,
The trick is that you use only 1 frontend server and add the rules for the different domains to this frontend.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
17.7 Legacy Series
»
HAProxy Reverse Proxy with subdomains