Installation

You have to carry out the following steps to install this module into your Apache server.

Preconditions:

Installation for Apache 1.1.x

$ cd /tmp/mod_rewrite
$ cp mod_rewrite*[hc] /usr/local/apache/dist/src/
$ cp -r for-apache-1.1.x/regexp /usr/local/apache/dist/src/
$ cp for-apache-1.1.x/util_script.c.diff /usr/local/apache/dist/src/
$ cp for-apache-1.1.x/mod_negotiation.c.diff /usr/local/apache/dist/src/
$ cd /usr/local/apache/dist/src/
$ patch <util_script.c.diff
$ patch <mod_negotiation.c.diff
$ vi Configuration
  |    :
  | EXTRA_LIBS= regexp/libregexp.a
  |    :
  | Module rewrite_module mod_rewrite.o
  |    :
$ ./Configure
$ (cd regexp; make)
$ make
NOTICE: 'Module rewrite_module mod_rewrite.o' must come after any other Modules that contain a URL-to-filename hook. Since it is not obvious which these are, the simple solution is to make it the last module in the Configuration list.

Installation for Apache 1.2.x

$ cd /tmp/mod_rewrite
$ cp mod_rewrite*[hc] /usr/local/apache/dist/src/
$ cd /usr/local/apache/dist/src/
$ vi Configuration
  |    :
  | Module rewrite_module mod_rewrite.o
  |    :
$ ./Configure
$ make