Installing Trac on Virtual Host

Discussion in 'General' started by PavementPounder, Oct 11, 2009.

  1. PavementPounder

    PavementPounder New Member


    I have a working trac environment, so when I go to I see the trac interface as expected. But I want it so that if I go to then it right away goes to the trac interface without the /cgi-bin/trac.fcgi part of the url.

    The trac environment is located at /var/www/web3/trac.

    Here is the optional apache directives i put for the website:
    <Location />
            SetHandler mod_python
            PythonInterpreter main_interpreter
            PythonHandler trac.web.modpython_frontend
            PythonOption TracEnv /var/www/web3/trac/
            PythonOption TracUriRoot /
            PythonOption PYTHON_EGG_CACHE /var/www/web3/egg-cache  
  2. PavementPounder

    PavementPounder New Member


    I had it working a while back and thought I'd answer my own thread. It turned to be another issue with the virtual hosts file not being written. Anyways here is the custom apache directives I used.

    <IfModule mod_wsgi.c>
        <Directory /var/www/web3/cgi-bin>
    	Options ExecCGI MultiViews
    	MultiviewsMatch Handlers
    	AddHandler wsgi-script .wsgi
        WSGIScriptAlias / /var/www/web3/cgi-bin/trac.wsgi
        PythonOption TracEnv /var/www/web3/victorycms_trac
        PythonOption TracUriRoot /
        PythonOption PYTHON_EGG_CACHE /var/www/web3/egg-cache
    <IfModule mod_env.c>
        <Location "/">
    	SetEnv PYTHON_EGG_CACHE /var/www/web3/egg-cache
    	SetEnv TRAC_ENV /var/www/web3/victorycms_trac
    <IfModule mod_auth_digest.c>
        <Location "/login">
    	AuthType Digest
    	AuthName "victorycms-trac"
    	AuthUserFile /var/www/web3/.trac-htpasswd
    	Require valid-user

Share This Page