##
##  trac.conf -- Apache configuration
##

#   approach 1: Apache mod_wsgi (default)
<IfModule wsgi_module>
    WSGIScriptAlias   /trac @_prefix@/etc/trac/trac.wsgi 
    WSGIDaemonProcess all   user=@l_rusr@ group=@l_rgrp@ processes=2 threads=25
    <Directory @l_prefix@/etc/trac>
        WSGIProcessGroup all
        WSGIApplicationGroup %{GLOBAL}
        WSGIPassAuthorization on
        Order deny,allow
        Allow from all
    </Directory>
</IfModule>

#   approach 2: Apache mod_proxy (fallback)
<IfModule !wsgi_module>
<IfModule proxy_module>
    ProxyPass         /trac/ http://127.0.0.1:8080/
    ProxyPassReverse  /trac/ http://127.0.0.1:8080/
    ProxyPreserveHost on
</IfModule>
</IfModule>

