Proxy Directives
We are not concerned here with firewalls, so we take them for granted. The interesting thing is how we configure the proxy Apache to make life with a firewall tolerable to those behind it.
site.proxy has three subdirectories: cache, proxy, real. The Config file from ... /site. proxy/proxy is as follows:
User webuser Group webgroup ServerName www.butterthlies.com Port 8000 ProxyRequests on CacheRoot /usr/www/APACHE3/site.proxy/cache CacheSize 1000
The points to notice are as follows:
On this site we use
ServerNamewww.butterthlies.com.The
Portnumber is set to 8000 so we don’t collide with the real web server running on the same machine.We turn
ProxyRequestsonand provide a directory for the cache, which we will discuss later in this chapter.CacheRootis set up in a special directory.CacheSizeis set to 1000 kilobytes.