Apache folder restrictions only for a subnet?
Posted on 2012-08-24
I've got a Linux server that has the IP 192.168.0.2
My virtualhost has the following configuration:
CustomLog logs/server.example.com-access_log common
Under /var/www/virtual I have a directory: /var/www/virtual/billing
that has a index.html file that I'd like to be available when clients access:
However, this link must be accessible only to clients from network: 192.168.0.3/24
When clients from other networks are trying to access /var/www/virtual/billing they shouldn't be able to do so.
Is this achievable?