List for cgit developers and users
 help / color / mirror / Atom feed
* Troubles using special characters in links with lighttpd
@ 2015-05-15 12:08 demelier.david
  2015-05-15 12:24 ` john
  0 siblings, 1 reply; 6+ messages in thread
From: demelier.david @ 2015-05-15 12:08 UTC (permalink / raw)


Hello,

I'm trying to setup cgit with lighttpd, this is my actual
configuration :

$HTTP["host"] == "git.malikania.fr" {
        alias.url = (
                "/static/" => "/usr/local/www/cgit/",
                "/cgit.cgi" => "/usr/local/www/cgit/cgit.cgi",
        )
        url.rewrite-once =
(                                                                                                                                                                     
                "^/static/.*$" => "$0",
                "^/([^?/]+/[^?]*)?(?:\?(.*))?$" => "/cgit.cgi?url=$1&
$2",
        )
        server.document-root = "/usr/local/www/cgit"
        cgi.assign = ( ".cgi" => "/usr/local/www/cgit/cgit.cgi" )
}


I have found several documents about that, this is mainly written from
[1].

Almost everythin works, except directories that contains special
characters that should be escaped. For example, I have a directory named
"C++", and this one will not work from the rewrite rule:

http://git.malikania.fr/code/tree/

If you click on C++, you get an empty directory, however, the resolved
link with appropriate characters works fine:

http://git.malikania.fr/code/tree/C%2b%2b

I have no idea how to fix that, is it a lighttpd problem or a cgit
configuration missing?

Regards,
David.

[1]:
https://github.com/willysr/SlackHacks/blob/master/SlackBuilds/cgit/config/cgit-lighttpd.conf



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-05-15 13:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-15 12:08 Troubles using special characters in links with lighttpd demelier.david
2015-05-15 12:24 ` john
2015-05-15 12:39   ` john
2015-05-15 13:12     ` demelier.david
2015-05-15 13:32       ` 
2015-05-15 13:34       ` john

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).