#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