- Enable modules: sudo a2enmod proxy proxy_http proxy_connect
- open file ../mods-enabled/proxy.conf
- uncomment #ProxyRequests On
- create file ../sites-available/forward_proxy.conf
<VirtualHost *:8080>
ProxyRequests On
ProxyVia On
<Proxy “*”>
Require ip 192.168
Require ip 127.0.0.1
Require ip 10
</Proxy>
ErrorLog ${APACHE_LOG_DIR}/error_forward_proxy.log
CustomLog ${APACHE_LOG_DIR}/access_forward_proxy.log combined
</VirtualHost>
- open file ../ports.conf and add the following
Listen 0.0.0.0:80
Listen 0.0.0.0:8080
- sudo a2ensite forward-proxy.conf
- service apache2 reload