File trac.conf of Package trac

# Example configuration for a trac website
#
# put the string SVN_TRAC in /etc/sysconfig/apache2 APACHE_SERVER_FLAGS
# to enable the URL and add one of TRAC_CGI, TRAC_FCGI or TRAC_MODPYTHON
# http://localhost/trac

<IfModule mod_alias.c>

<IfDefine TRAC_CGI>

	ScriptAlias /trac /usr/share/trac/cgi-bin/trac.cgi

	<Location "/trac">
		SetEnv TRAC_ENV_PARENT_DIR "/srv/trac"
		Require all granted
	</Location>

        <LocationMatch "/[^/]+/login">
                AuthType Basic
                AuthName "Trac"
                AuthUserFile /srv/trac/user_access/passwdfile
                Require valid-user
        </LocationMatch>

</IfDefine>

<IfModule mod_fastcgi.c>
<IfDefine TRAC_FCGI>

        ScriptAlias /trac /usr/share/trac/cgi-bin/trac.fcgi
        FastCgiConfig -initial-env TRAC_ENV_PARENT_DIR=/srv/trac

        <Location "/trac">
		Require all granted
        </Location>

        <LocationMatch "/[^/]+/login">
                AuthType Basic
                AuthName "Trac"
                AuthUserFile /srv/trac/user_access/passwdfile
                Require valid-user
        </LocationMatch>

</IfDefine>
</IfModule>

<IfModule mod_python.c>
<IfDefine TRAC_MODPYTHON>

        ScriptAlias /trac "/srv/trac"

	<Location /trac>
		SetHandler mod_python
		PythonInterpreter main_interpreter
		PythonHandler trac.web.modpython_frontend 
		PythonOption TracEnvParentDir /srv/trac
		PythonOption TracUriRoot /trac
		PythonOption PYTHON_EGG_CACHE /tmp
		Require all granted
	</Location>

        <LocationMatch "/[^/]+/login">
                AuthType Basic
                AuthName "Trac"
                AuthUserFile /srv/trac/user_access/passwdfile
                Require valid-user
        </LocationMatch>

</IfDefine>
</IfModule>

</IfModule>
openSUSE Build Service is sponsored by