Opened 10 years ago

Closed 10 years ago

#14 closed task (fixed)

Establish HTTP redirect to GitLab for /project/.../<repository>

Reported by: ehuelsmann Owned by: somebody
Priority: major Milestone:
Component: component1 Version:
Keywords: Cc:
Parent Tickets: 12

Description


Attachments (1)

rewriterules (21.3 KB) - added by ehuelsmann 10 years ago.
Rewrite rule example such as generated during migration

Download all attachments as: .zip

Change History (6)

comment:1 Changed 10 years ago by ehuelsmann

Purpose of the redirect is to keep being able to check out published repositories over HTTP(S).

comment:2 Changed 10 years ago by ehuelsmann

Every repository in the listing at https://common-lisp.net/gitlab-migration-repository-mapping/ needs a rewrite rule like the one below (which I tested and works):

     # For the repository originally located at physical path /project/oct/public_html/git/oct.git
     RewriteRule ^/project/oct/git/(oct.git.*)$ https://gitlab-test.common-lisp.net/oct/$1

comment:3 Changed 10 years ago by ehuelsmann

Next step is to attach a full listing of rewrite rules to be included in the common-lisp.net:443 virtual host block. The one above was inserted - for testing purposes - above these lines within said block:

    AliasMatch ^/projects/([^/]+)(.*) /srv/project/$1/public_html/$2
    AliasMatch ^/project/([^/]+)(.*) /srv/project/$1/public_html/$2
    AliasMatch ^/p/(.*)              /srv/project/$1

comment:4 Changed 10 years ago by ehuelsmann

Please note that in said listing, there are some URLs in the users' namespace as well (e.g. https://common-lisp.net/~frideau/...). These too need redirects using the same redirect pattern, using the name of the user instead of the name of the project.

Changed 10 years ago by ehuelsmann

Attachment: rewriterules added

Rewrite rule example such as generated during migration

comment:5 Changed 10 years ago by ehuelsmann

Resolution: fixed
Status: newclosed

With the implementation of the rewrite rules above, I'm considering this task done. Closing as fixed.

Note: See TracTickets for help on using tickets.