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

Getting Started - 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
Obviously, in order to do anything constructive with Apache, you need a copy of the source code. Drop by http://httpd.apache.org/ and get yourself the latest version (this article uses both Apache 1.3 and Apache 2.0).

Once you've got a source code archive, uncompress it into a directory on your system,
$ cd /tmp
$ tar -xzvf httpd-2.0.36.tar.gz
and run the "configure" script in the newly-created directory (for Apache 1.3):
$ ./configure --enable-module=proxy
If you're using Apache 2.0, you should use this instead:
$ ./configure --enable-proxy --enable-proxy-ftp --enable-proxy-http
--enable-cache --enable-disk-cache
Once the source tree has been prepped, you can compile and install Apache with a quick
$ make
$ make install
Apache should get installed to the default location of /usr/local/apache, unless you specified a different location by adding the "--prefix" parameter to the "configure" script.

If all goes well, you should now have a properly-compiled Apache Web server installed on your system. Check to make sure that the proxy module has been included in the build via a quick scan of the output of "httpd -l".
$ /usr/local/apache/bin/httpd -l
Compiled-in modules:
http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_autoindex.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_access.c
mod_auth.c
mod_proxy.c
mod_setenvif.c
All that's left is to configure the proxy. Let's look at that next.

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

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

SITE ADMINISTRATION ARTICLES

- Coding: Not Just for Developers
- To Support or Not Support IE?
- Administration: Networking OSX and Win 7
- DotNetNuke Gets Social
- Integrating MailChimp with Joomla: Creating ...
- Integrating MailChimp with Joomla: List Mana...
- Integrating MailChimp with Joomla: Building ...
- Integrating MailChimp with Joomla
- 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

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: