Apache modules
Modules
- Apache can load modules for various functions when it starts
- This is done by LoadModule directives
LoadModule env_module modules/mod_env.so
LoadModule config_log_module modules/mod_log_config.so
LoadModule agent_log_module modules/mod_log_agent.so
- You also need to
AddModule mod_env.c
AddModule mod_log_config.c
AddModule mod_log_agent.c
- There may be additional directives required, depending on the module
Java Servlet module
In httpd.conf
LoadModule jserv_module modules/mod_jserv.so
AddModule mod_jserv.c
<IfModule mod_jserv.c>
Include /etc/httpd/conf/jserv/jserv.conf
</IfModule>
The last part points to a Servlet configuration file that also
needs modification to say where the servlet files
Servelt config file
This contains lines to be set such as
ApJServProperties /etc/httpd/conf/jserv/jserv.properties
ApJServLogFile /var/log/httpd/mod_jserv.log
ApJServMount /servlets /root
ApJServMount /servlet /root
<Location /jserv/>
SetHandler jserv-status
order deny,allow
deny from all
allow from localhost
</Location>
Perl mod_perl
In httpd.conf
LoadModule perl_module modules/libperl.so
AddModule mod_perl.c
<IfModule mod_perl.c>
Alias /perl/ /home/httpd/perl/
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
</Location>
</IfModule>
Jan Newmarch (http://pandonia.canberra.edu.au)
jan@ise.canberra.edu.au
Last modified: Tue Aug 15 15:39:06 EST 2000
Copyright ©Jan Newmarch