Multiple domains using the same IP
-
We have a hosted server that only has a single public IP
Is it possible to host multiple servers behind pfsense and have them all accessible via this single public IP with pfsense directing traffic based upon the domain used?
i.e.
If a.comany.com & b.company.com both share the same public IPa.company.com => serverA
b.company.com => serverB -
"Reverse proxies can inspect HTTP headers, which, for example, allows them to present a single IP address to the Internet while relaying requests to different internal servers based on the URL of the HTTP request. "
-
Perfect, and pfSense can do this?
-
@McMurphy Both an HAProxy (including a -devel version) and Squid package exist via Package Manager. I could not speak to which would be better for your use case as I have no use for either one.