![]()
You have to carry out the following steps to install this module into your Apache server. Installation
Preconditions:
- mod_rewrite distribution stays in /tmp/mod_rewrite-2.1
- The Apache distribution root is /usr/local/apache/dist
$ cd /tmp/mod_rewrite-2.1 $ cp mod_rewrite*[hc] /usr/local/apache/dist/src $ cp -r apache-1.1.x/regexp /usr/local/apache/dist/src $ cp apache-1.1.x/util_script.c.diff /usr/local/apache/dist/src $ cd /usr/local/apache/dist/src $ patch <util_script.c.diff $ vi Configuration | : | EXTRA_LIBS= regexp/libregexp.a | : | Module rewrite_module mod_rewrite.c | : $ ./Configure $ (cd regexp; make) $ make
NOTICE: 'Module rewrite_module mod_rewrite.c' 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. $ cd /tmp/mod_rewrite-2.1 $ cp mod_rewrite*[hc] /usr/local/apache/dist/src $ cd /usr/local/apache/dist/src $ vi Configuration | : | Module rewrite_module mod_rewrite.c | : $ ./Configure $ make