i have a question:
I have a few devices located in my LAN, that host a website. I own a domain, which allows me to create multiple A-Records.
Is it possible, to use the Raspi as a sort of webserver gateway, that can distribute HTTP (or HTTPS)-requests?
Server 1 hosts a website.
Server 2 hosts a website.
I can access the website of Server 1 via port forwarding. My router forwards requests on port 443 to Server 1. This way, I can't access the websites of both Servers from WAN, only the website of server 1.
I know from (expensive) business firewalls (such as Sophos devices), that it is possible to redirect these requests to different servers based on URL-specific forwarding.
Requests to "server1.mydomain.com" are forwarded to server 1 and requests to "server2.mydomain.com" are forwarded to server 2.
Both A-Records point to the same public IP of my router. In th background, the requests are forwarded to the raspberry, which decides, if the target is server 1 or server 2.
Does anyone know, if this is possible with an open source software, that runs on a raspberry model b+?