Project

General

Profile

Howto Request-Tracker » History » Revision 3

Revision 2 (stbuehler, 2010-08-29 16:33) → Revision 3/5 (stbuehler, 2010-08-29 16:34)

h1. Howto Request-Tracker 

 Request Tracker expects a [[Howto WSGI|WSGI]] environment, so you need source:doc/core.lua again: 

 <pre> 
 setup { 
     module_load ( "mod_fastcgi", "mod_vhost", "mod_lua" ); 
     lua.plugin "/your-path/core.lua"; 
 } 

 var.vhosts = []; 

 # ... 

 var.vhosts = var.vhosts + [ 
	 "rt.example.com": ${ 
		 if req.path =^ "/NoAuth/images" { 
			 docroot "/opt/rt3/share/html"; 
		 } else { 
			 core.wsgi ( "", ${ fastcgi "unix:/var/run/lighttpd/sockets/rt.sock"; } ); 
		 } 
	 } 
 ]; 

 # ... 

 vhost.map var.vhosts; 

 </pre> 

 Start RT as FastCGI application fastcgi app with a runit script like this: 
 <pre> 
 #!/bin/bash 

 exec 2>&1 
 exec /usr/bin/spawn-fcgi -s /var/run/lighttpd/sockets/rt.sock -n -u www-data -U www-data -- \ 
	 /opt/rt3/bin/mason_handler.fcgi 
 </pre>