Alvaro Lopez Ortega wrote:
John Hampton wrote:
 > I'm getting a 404 when trying to download that release.

  Oopss.. it is solved now :-)

Well, I downloaded and installed 0.4.29b4 (btw, if anyone wants Gentoo ebuilds for the beta releases, just drop me a line).

Compile went fine, and it's running. After a few tries, and the clearing of a little bit of misunderstanding, on my part, of how Trac handles the TRAC_ENV_PARENT_DIR var, things are working.

Here is my config for setting up Trac:

Directory /projects {
    Handler cgi {
        Scriptalias /usr/share/trac/cgi-bin/trac.cgi
        Env TRAC_ENV_PARENT_DIR "/var/projects/trac"
    }
}

Request "/projects/.+/login" {
    Auth Basic {
        Name "EST Login"
        Method htpasswd {
            PasswdFile /var/projects/conf/projectusers
        }
    }
}

Directory /projects/.+/chrome/common {
    Handler common
    DocumentRoot /usr/share/trac/htdocs
}

The above is for serving multiple Trac sites with out having to add a configuration section for each one. It also creates nice looking URLs.

The following configuration is for a single Trac site that just uses the ugly /cgi-bin/trac.cgi access


Directory /cgi-bin {
    Handler cgi {
        Env TRAC_ENV "/var/projects/trac/est"
    }
    DocumentRoot /usr/share/trac/cgi-bin
}

Request "/cgi-bin/trac.cgi/login" {
    Auth Basic {
        Name "Trac"
        Method htpasswd {
            PasswdFile /var/projects/conf/projectusers
        }
    }
}

Both of these configurations work. Login works fine, all the pages work fine, and posting stuff works fine.

Well done Alvaro! (And whomever else might have helped)

Now, the things that I ran into while getting this configuration up are:
 * The Request directive requires that you use "" around the path.  ie:
    Request /cgi-bin/trac.cgi/login { ... } <--- Invalid
    Request "/cgi-bin/trac.cgi/login" { ... } <--- Valid
 * For Trac, when using the TRAC_ENV_PARENT_DIR environment variable,
   the ScriptAlias must be the path of the parent dir as in above
   configuration

I think that come 0.4.29 we can add Trac to the WebApplications page as an app that works with Cherokee.

I'm going to write a HowTo configure Trac with Cherokee and see if the Trac project will add it to their documentation, but I wonder if it shouldn't also be mirrored on the Cherokee wiki. At least until it's added to the Trac project.

Anyway, I'm loving Cherokee. It's great! Thanks for the help and the changes.

-John
_______________________________________________
Cherokee mailing list
[email protected]
http://www.alobbs.com/cgi-bin/mailman/listinfo/cherokee

Reply via email to