Hi. I am configuring trac on lighty with fastcgi. It actually works now, the
last thing is the URLs. Here is a snippet from my lighty config file:

...
url.rewrite-once = (
    "^/trac/?(.*)$" => "/cgi-bin/trac.fcgi/$1"
)

fastcgi.server = (
   "/cgi-bin/trac.fcgi" => (
        "trac" => (
            "bin-path" => "/var/dev/www/cgi-bin/trac.fcgi",
            "socket" => "/var/run/lighttpd/trac.fastcgi.sock",
            "check-local" => "disable",
            "bin-environment" => (
                "TRAC_ENV_PARENT_DIR" => "/var/dev/trac"
            )
        )
    )
)
(please ignore that I am not using the static elements and the script from
deploy, I know how to do it but this is a minimalistic setup that works with
trac)

So, incoming request like 'www.domain.org/trac/something' will end up being
served as 'www.domain.org/cgi-bin/trac.fcgi/something'. However, all links
that trac generates use the cgi-bin version, and as soon as one clicks
anything, the address bar shows it. I would like to make the urls use 'trac'
as well.

For example, the very same lighty server is used to publish mercurial
repositories using hgweb.fcgi. Rewrite and fastcgi server are configured
analogically. However, hgweb.fcgi takes a config file that has a 'baseurl'
setting, which is used to generate all URLs. With that, and the rewrite, the
URLs in the address bar are nice and hide the 'cgi-bin/hgweb.fcgi' path. I
would like to do the same for trac.

I looked around in the tracini documentation, and i found a 'base_url'
property, but it seems to be used in emails only, not internally in trac. I
tried it anyways, but it doesn't work.

I am using trac 0.12.2.

I suppose I can't do any lighty magic, as the URLs are trac-generated,
right?

Regards.
-- 
View this message in context: 
http://old.nabble.com/lighttpd%2C-fastcgi-and-URLs-in-trac-tp32033696p32033696.html
Sent from the Trac Users mailing list archive at Nabble.com.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to