Using Apache As A Proxy Server - Getting Started (Page 2 of 7 )
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.
Next: Passing The Packets >>
More Administration Articles
More By icarus, (c) Melonfire