[clo] #15: Establish HTTP redirect to GitLab for /gitweb

clo clo-devel at common-lisp.net
Tue Mar 17 08:42:52 UTC 2015


#15: Establish HTTP redirect to GitLab for /gitweb
-----------------------------+----------------------
      Reporter:  ehuelsmann  |      Owner:  somebody
          Type:  task        |     Status:  new
      Priority:  major       |  Milestone:
     Component:  component1  |    Version:
    Resolution:              |   Keywords:
Parent Tickets:  12          |
-----------------------------+----------------------

Comment (by ehuelsmann):

 Progress: I've implemented a gitweb redirect map script in Perl (I know, I
 know); it's deployed as /usr/local/bin/gitweb-rewritemap, but needs to be
 implemented in the Apache config.

 I'd propose like this:

 {{{
    RewriteMap gitwebmap prg:/usr/local/bin/gitweb-rewritemap
 }}}

 And the following rewrite rules:

 {{{
    RewriteRule /gitweb/? https://gitlab.common-lisp.net/explore/projects
    RewriteRule /gitweb/\?(.*)  ${gitwebmap:$1}
 }}}

--
Ticket URL: <https://trac.common-lisp.net/clo/ticket/15#comment:2>
clo <http://common-lisp.net/project/clo>
clo




More information about the clo-ticket mailing list