A regex that doesn't rely on '.git'.

This commit is contained in:
Ralph Bean
2016-01-05 21:53:35 +00:00
parent 87f883be01
commit 7ae1df78b3

View File

@@ -1,5 +1,5 @@
# Redirect requests to un-namespaced repos to their new namespaced home
RedirectMatch 302 "/cgit/([a-zA-Z0-9\-]+)\.git(.*)$" "/cgit/rpms/$1.git$2"
RedirectMatch 302 "^/cgit/((?!(rpms|docker)).*)" "/cgit/rpms/$1"
Alias /cgit-data /usr/share/cgit
ScriptAlias /cgit /var/www/cgi-bin/cgit