![]()
Additional Modules
mod_rewrite_compat
Summary
This module provides backward-compatibility for the older and less powerful core-modules mod_alias and mod_userdir.Installation
- Copy the module to apache distribution source tree:
$ cp mod_rewrite_compat.c ApacheDistRoot/src/- Comment out the two replaced modules, add this module to the Apache configuration file and recompile:
$ cd ApacheDistRoot/src/ $ vi Configuration | : | #Module userdir_module mod_userdir.o | #Module alias_module mod_alias.o | Module rewrite_compat_module mod_rewrite_compat.o | : $ ./Configure $ make- Kill the running Apache server, install the new binary, restart the Apache server and you will see a page displaying internal information from the Rewrite Engine.
Usage
Use your old directives from mod_alias and mod_userdir, which automatically get converted into the correct form of the corresponding directive from mod_rewrite.
mod_rewrite_status
Summary
This module is similar to the core modules mod_status and mod_info. It provides for online information about the actual internal configuration information of mod_rewrite.Installation
This module is contained in the standard distribution of mod_rewrite.
- Copy the module to apache distribution source tree:
$ cp mod_rewrite_status.c ApacheDistRoot/src/- Add the module to Apache configuration file and recompile:
$ cd ApacheDistRoot/src/ $ vi Configuration | : | Module rewrite_status_module mod_rewrite_status.c | : $ ./Configure $ make- Kill the running Apache server, install the new binary, restart the Apache server and you will see a page displaying internal information from the Rewrite Engine.
Usage
Just request the URL /rewritestatus through your favorite Web browser.