Suppose I want the following clients to access only specific internet servers from behind a apache2 forward proxy:
Client-1-IP: www.google.com
Client-2-IP: www.gmail.com
Client-3-IP: www.cnn.com
Client-4-IP: www.chess.com
Is this possible? I am running Apache 2.4.10 on Debian 8. Currently, I am allowing specific clients to access the entire internet via this configuration values, but want to be able to specify that a specific client can access only a specific internet server:
<VirtualHost *:8080>
ProxyRequests On
Proxyvia On
<Proxy "*">
Order deny,allow
Deny from all
Allow from <ip-1>
Allow from <ip-2>
Allow from <ip-3>
</Proxy>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Thanks.