I have an Apache2 Server configured as Reverse Proxy on my perimeter network.
There are a lot of VirtualHost configured with the ProxyPas directive.
For a specific one, I want to restrict access to a specific IP address.
This is an example:
<VirtualHost 192.168.0.1:80>
ServerAdmin email@domain.com
ServerName sub.domain.com
ServerAlias sub.domain.com
ProxyPass / http://internal.domain.com:80/
ProxyPassReverse / http://internal.domain.com:80/
CustomLog /var/log/apache2/my_log combined
HostnameLookups Off
ProxyPreserveHost On
UseCanonicalName Off
ServerSignature On
ProxyRequests Off
</VirtualHost>
I have tried to add this:
<Proxy *>
Order deny,allow
Deny from all
Allow from 192.168.0.100
</Proxy>
but doesn't work because the Reverse Proxy does not preserve the remote IP address.
There is a way to use IP ACL with Apache configured as Reverse Proxy?
Thanks