1 # Single-process Apache testing with mod_perl, mod_fcgi, or mod_fastcgi
4 # apache2 -f `pwd`/devel/tools/apache.conf -DPERL -k start
6 # The full path to the configuration file is needed, or Apache assumes
7 # it is under the ServerRoot. Since the deployment strategies differ
8 # between RT 3 and 4, you must either supply -DRT3 if you are attempting
9 # to deploy an rt3 instance. You must also supply one of -DPERL,
10 # -DFASTCGI, or -DFCGID.
12 # The /opt/rt4/etc/apache_local.conf file should contain:
16 # ...or the equivilent.
18 # Apache access and error logs will be written to /opt/rt4/var/log/.
21 Include /opt/rt4/etc/apache_local.conf
24 Include /opt/rt3/etc/apache_local.conf
27 <IfModule mpm_prefork_module>
35 <IfModule mpm_worker_module>
45 ServerRoot /etc/apache2
46 PidFile /opt/rt4/var/apache2.pid
47 LockFile /opt/rt4/var/apache2.lock
48 ServerAdmin root@localhost
50 LoadModule authz_host_module /usr/lib/apache2/modules/mod_authz_host.so
51 LoadModule env_module /usr/lib/apache2/modules/mod_env.so
52 LoadModule alias_module /usr/lib/apache2/modules/mod_alias.so
53 LoadModule mime_module /usr/lib/apache2/modules/mod_mime.so
55 LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so
58 LoadModule fastcgi_module /usr/lib/apache2/modules/mod_fastcgi.so
61 LoadModule fcgid_module /usr/lib/apache2/modules/mod_fcgid.so
64 ErrorLog "/opt/rt4/var/log/apache-error.log"
65 TransferLog "/opt/rt4/var/log/apache-access.log"
69 Options FollowSymLinks
75 AddDefaultCharset UTF-8
83 Alias /NoAuth/images/ /opt/rt4/share/html/NoAuth/images/
84 <Directory /opt/rt4/share/html/NoAuth/images>
90 ########## 4.0 mod_perl
92 PerlSetEnv RT_SITE_CONFIG /opt/rt4/etc/RT_SiteConfig.pm
97 PerlResponseHandler Plack::Handler::Apache2
98 PerlSetVar psgi_app /opt/rt4/sbin/rt-server
101 use Plack::Handler::Apache2;
102 Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");
106 ########## 4.0 mod_fastcgi
108 FastCgiIpcDir /opt/rt4/var
109 FastCgiServer /opt/rt4/sbin/rt-server.fcgi -processes 1 -idle-timeout 300
110 ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/
115 AddHandler fastcgi-script fcgi
119 ########## 4.0 mod_fcgid
121 FcgidProcessTableFile /opt/rt4/var/fcgid_shm
122 FcgidIPCDir /opt/rt4/var
123 ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/
128 AddHandler fcgid-script fcgi
135 ########## 3.8 mod_perl
137 PerlSetEnv RT_SITE_CONFIG /opt/rt3/etc/RT_SiteConfig.pm
138 PerlRequire "/opt/rt3/bin/webmux.pl"
139 <Location /NoAuth/images>
143 SetHandler perl-script
144 PerlResponseHandler RT::Mason
148 ########## 3.8 mod_fastcgi
150 FastCgiIpcDir /opt/rt3/var
151 FastCgiServer /opt/rt3/bin/mason_handler.fcgi -processes 1 -idle-timeout 300
152 ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/
157 AddHandler fastcgi-script fcgi
161 ########## 3.8 mod_fcgid
163 FcgidProcessTableFile /opt/rt3/var/fcgid_shm
164 FcgidIPCDir /opt/rt3/var
165 ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/
170 AddHandler fcgid-script fcgi