apache as a web proxy

if you want a quick web proxy for your browsers or for anything, you can define a virtualhost in apache2 as follows:

Listen *:8080
<VirtualHost *:8080>

ProxyRequests On
ProxyVia On

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

CacheRoot "/tmp"
CacheMaxExpire 24
CacheLastModifiedFactor 0.1
CacheDefaultExpire 1
ServerName my-proxy
ErrorLog "/opt/csw/apache2/var/log/proxy-error.log"
CustomLog "/opt/csw/apache2/var/log/proxy-access.log" common

</VirtualHost>

Leave a Reply

Your email address will not be published. Required fields are marked *