James:
https://httpd.apache.org/docs/2.0/mod/mod_alias.html#redirect
mod_alias for Redirect or RedirectMatch
And since you have dynamic loading of modules enabled, yes, you can "turn on" the alias module without the need of re-compiling Apache from scratch.
From: james pruett [mailto:gpscruise@xxxxxxxxx]
Sent: Thursday, May 19, 2016 12:03 PM
To: users@xxxxxxxxxxxxxxxx
Subject: old solaris box (but heavily used)
Hi,
My boss wants us to provide a redirect page for use during site-maintanance.
I assume this means I need to add mod_rewrite.
Q:Can I add mod_rewrite to my server without re-compiling?
Thanks for any leads.
I really appreciate it. I usually tip if that is an option. I insist!
Jim Pruett
These are my notes so far......
---------------Solaris uses libexec, not modules directory-----------------
% grep ^LoadModule /etc/apache2/httpd.conf-example | grep rewrite
LoadModule rewrite_module libexec/mod_rewrite.so
---------to load modules----apache extension tool----------------
mktpricing:/usr % find apache* -name apxs
apache/bin/apxs
apache2/bin/apxs
--------my setup--------------------
mktpricing:/etc/apache % uname -a
SunOS mktpricing 5.10 Generic_150400-20 sun4v sparc sun4v
mktpricing:/etc/apache % /usr/apache2/bin/apachectl -l
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c
mktpricing:/etc/apache % /usr/apache2/bin/apachectl -V
Server version: Apache/2.0.63
Server built: Sep 15 2014 10:00:47
Server's Module Magic Number: 20020903:13
Server loaded: APR 0.9.17, APR-UTIL 0.9.15
Compiled using: APR 0.9.17, APR-UTIL 0.9.15
Architecture: 32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_FCNTL_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/usr/apache2"
-D SUEXEC_BIN="/usr/apache2/bin/suexec"
-D DEFAULT_PIDLOG="/var/run/apache2/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
-D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf"