Daniel,
Thanks for resolving the ticket - however, the FAQ says:
"Early versions of Subversion used an (external) diff command. On UNIX-like
systems, diff is usually installed already, so this wasn't an issue there.
Installing diffutils should solve the problem, but a better solution would
be to upgrade to the latest Subversion, which now uses an internal diff
library."
It's not just highlighting, BTW - there is NO diff text shown at all...
I have SVN v1.0.2 - the latest - do you advise also installing enscript or
silvercity? (which)
Cheers,
:D
--------------------------------------------------------------------
Daragh Fitzpatrick Daragh@UChicago.edu (773) 702-8976
Solutions Architect NSIT Administrative Systems
Renewal Projects and Architecture University of Chicago
--------------------------------------------------------------------
-----Original Message-----
From: trac-bounces@bobcat.edgewall.com
[mailto:trac-bounces@bobcat.edgewall.com] On Behalf Of Daniel Lundin
Sent: Wednesday, May 19, 2004 10:09 AM
To: trac@bobcat.edgewall.com
Subject: Re: [Trac] Redirect from http://hostname/trac/
tohttp://hostname/cgi-bin/trac.cgi
On Wednesday 19 May 2004 10:20 am, Daragh Fitzpatrick wrote:
> Has anyone done a redirect so that http://hostname/trac/ will cause
> http://hostname/cgi-bin/trac.cgi to be loaded?
Using Apache, the mod_rewrite is a very powerful and useful tool. It can
rewrite a HTTP request before it is handled:
http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html
However, a simpler approach using ScriptAliasMatch will probably also do the
trick. Something like:
8< ------------------------------------------------------------------------
ScriptAliasMatch /(proj_a|proj_b)(.*) /trac/cgi-bin/trac.cgi$2
<Location "/proj_a">
SetEnv TRAC_ENV "/var/trac/env/proj_a"
</Location>
<Location "/proj_b">
SetEnv TRAC_ENV "/var/trac/env/proj_b"
</Location>
Alias /trac/ /var/trac/htdocs/
<LocationMatch "/(proj_a|proj_b)/login">
AuthType Digest
AuthName "the_auth_name"
AuthDigestFile /var/trac/user_digest
AuthGroupFile /var/trac/user_groups
Satisfy all
Require group trac
</LocationMatch>
------------------------------------------------------------------------ >8
The snippet above is off the top of my head, so typos etc might be present.
It should work though, or at least give you the general idea. :)
--
Daniel Lundin | Edgewall Software
daniel@edgewall.com | Professional Linux & Open Source Consulting
| http://www.edgewall.com/
_______________________________________________
Trac mailing list
Trac@lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac
Thanks for resolving the ticket - however, the FAQ says:
"Early versions of Subversion used an (external) diff command. On UNIX-like
systems, diff is usually installed already, so this wasn't an issue there.
Installing diffutils should solve the problem, but a better solution would
be to upgrade to the latest Subversion, which now uses an internal diff
library."
It's not just highlighting, BTW - there is NO diff text shown at all...
I have SVN v1.0.2 - the latest - do you advise also installing enscript or
silvercity? (which)
Cheers,
:D
--------------------------------------------------------------------
Daragh Fitzpatrick Daragh@UChicago.edu (773) 702-8976
Solutions Architect NSIT Administrative Systems
Renewal Projects and Architecture University of Chicago
--------------------------------------------------------------------
-----Original Message-----
From: trac-bounces@bobcat.edgewall.com
[mailto:trac-bounces@bobcat.edgewall.com] On Behalf Of Daniel Lundin
Sent: Wednesday, May 19, 2004 10:09 AM
To: trac@bobcat.edgewall.com
Subject: Re: [Trac] Redirect from http://hostname/trac/
tohttp://hostname/cgi-bin/trac.cgi
On Wednesday 19 May 2004 10:20 am, Daragh Fitzpatrick wrote:
> Has anyone done a redirect so that http://hostname/trac/ will cause
> http://hostname/cgi-bin/trac.cgi to be loaded?
Using Apache, the mod_rewrite is a very powerful and useful tool. It can
rewrite a HTTP request before it is handled:
http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html
However, a simpler approach using ScriptAliasMatch will probably also do the
trick. Something like:
8< ------------------------------------------------------------------------
ScriptAliasMatch /(proj_a|proj_b)(.*) /trac/cgi-bin/trac.cgi$2
<Location "/proj_a">
SetEnv TRAC_ENV "/var/trac/env/proj_a"
</Location>
<Location "/proj_b">
SetEnv TRAC_ENV "/var/trac/env/proj_b"
</Location>
Alias /trac/ /var/trac/htdocs/
<LocationMatch "/(proj_a|proj_b)/login">
AuthType Digest
AuthName "the_auth_name"
AuthDigestFile /var/trac/user_digest
AuthGroupFile /var/trac/user_groups
Satisfy all
Require group trac
</LocationMatch>
------------------------------------------------------------------------ >8
The snippet above is off the top of my head, so typos etc might be present.
It should work though, or at least give you the general idea. :)
--
Daniel Lundin | Edgewall Software
daniel@edgewall.com | Professional Linux & Open Source Consulting
| http://www.edgewall.com/
_______________________________________________
Trac mailing list
Trac@lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac