Browse Source

Merge "Add rewrites for whitelabeled legacy git sites"

changes/90/651390/1
Zuul 1 month ago
parent
commit
98e3e34218
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      modules/openstack_project/files/git-redirect.htaccess

+ 8
- 0
modules/openstack_project/files/git-redirect.htaccess View File

@@ -4,6 +4,14 @@
4 4
 RewriteCond %{QUERY_STRING} "^(.*)h=([^&]+)%2F([^&]+)(.*)$"
5 5
 RewriteRule "^(.*)$" "/$1?%1h=%2/%3%4" [N]
6 6
 
7
+# Map whitelabeled project git sites with repository prefixes
8
+RewriteCond %{HTTP_HOST} ^git\.airshipit\.org$ [NC]
9
+RewriteRule "^(cgit/|)(airship-.*)$" "$1openstack/$2" [L]
10
+RewriteCond %{HTTP_HOST} ^git\.starlingx\.io$ [NC]
11
+RewriteRule "^(cgit/|)(stx-.*)$" "$1openstack/$2" [L]
12
+RewriteCond %{HTTP_HOST} ^git\.zuul-ci\.org$ [NC]
13
+RewriteRule "^(cgit/|)((nodepool|zuul).*)$" "$1openstack-infra/$2" [L]
14
+
7 15
 ###################################
8 16
 # summary
9 17
 #  ignore all args

Loading…
Cancel
Save