I have a Django 2.2 web application running on Apache 2.4 Ubuntu 18.04 web server, which has two network interfaces. One network interface is for internet access(eth0) and other one is for local network(eth1).
I need to find a way to restrict access to some pages from each network interface, while some pages still be accessible from both interfaces.
In projects urls.py I have some urls as follows:
url(r'^eth0/', include('eth0.urls')), #accessible to only eth0
url(r'^eth0eth1/', include('eth0eth1.urls')), #accessible by both network interfaces
url(r'^eth1/', include('eth1.urls')), #accessible to only eth1
How can I achieve this by Apache or Django configuration?