In a home network environment, I'm hosting a web server but my ISP keeps giving me different but dynamic IP address via DHCP (dhclient here).
The system is running systemd (and not rc.d initd).
How do I ensure that Apache 2.4 is ONLY listening to that interface (of changing IP addresses)?
Caveats:
- I don't want Apache 2.4 listening on my other 3 NIC interfaces (I've got a test network, a cable-provider network, and a WiFi network, each have their own web servers).
- Firewall approach is not the best approach option here (besides Apache2 must know IP address somehow in advance and should selectively listen to a specified interface ... for compartmentability sake.)