Home arrow Site Administration arrow Page 6 - Using Apache As A Proxy Server

Cache Cow - Administration

Apache isn't just the planet's most popular Web server - it'salso one heck of a proxy server. This article explores the process ofinstalling and configuring Apache to act as a proxy server for yournetwork, demonstrating how it can be used to cache frequently-accessedWeb sites, log Internet access and block offensive domains, in additionto serving up Web content. Talk about getting two servers for the priceof one!

TABLE OF CONTENTS:
  1. Using Apache As A Proxy Server
  2. Getting Started
  3. Passing The Packets
  4. Wheat And Chaff
  5. Going Backwards
  6. Cache Cow
  7. Endzone
By: icarus, (c) Melonfire
Rating: starstarstarstarstar / 30
June 12, 2002

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement
frequently-accessed Web pages to connecting clients. Apache comes with a fairly good proxy caching feature, which can be used to store Web pages on the server and use these locally-cached copies to serve client requests.

In order to enable this cache, add the following lines to your Apache 1.3 configuration file:
CacheRoot "/usr/local/apache/proxy"
CacheSize 5
CacheGcInterval 4
CacheMaxExpire 24
CacheLastModifiedFactor 0.1
CacheDefaultExpire 1
NoCache yahoo.com
Most of these are fairly self-explanatory - the CacheRoot directive sets the directory where cached files will be stored, while the other directives specify things like maximum cache size and maximum cache flush interval. It's also possible to exclude certain Web sites from being cached, via the NoCache directive.

The corresponding directives for Apache 2.0 are:
<IfModule mod_disk_cache.c>
CacheRoot "/usr/local/apache/proxy"
CacheSize 500
CacheDirLevels 5
CacheDirLength 3
</IfModule>
Using a cache can speed up browsing on your network, as the server can use cached copies to provide faster response times to connecting clients.

 
 
>>> More Site Administration Articles          >>> More By icarus, (c) Melonfire
 

blog comments powered by Disqus
   

SITE ADMINISTRATION ARTICLES

- More Top WordPress Plugins for Social Media
- Optimizing Security: SSH Public Key Authenti...
- Patches and Rejects in Software Configuratio...
- Configuring a CVS Server
- Managing Code and Teams for Cross-Platform S...
- Software Configuration Management
- Back Up a Joomla Site with Akeeba Backup
- Install and Optimize PlayOnLinux on Ubuntu a...
- Top Wordpress Plugins for e-Commerce
- Top WordPress Plugins to Fight Spam
- Top Six Drupal Modules to Prevent Spam
- Install XAMPP on Windows
- Manage Backups for WordPress Files and Datab...
- WordPress Security Tips
- How to Back Up WordPress Files and Databases


© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 9 - Follow our Sitemap

Dev Shed Tutorial Topics: