X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/5a8aef00cf48a41cfbf863a708a2d4014410f74dc1b90efb2708c72420df2286..28e72226f08f85a9e507564cc81ebd8342acbf04ae4d485b02b2617eb01380dd:/README?ds=sidebyside diff --git a/README b/README index e17aece..32e1b4c 100644 --- a/README +++ b/README @@ -376,7 +376,7 @@ named without a .git extension (e.g. /pub/git/project instead of DocumentRoot /var/www/gitweb - AliasMatch ^(/.*?)(\.git)(/.*)? /pub/git$1$3 + AliasMatch ^(/.*?)(\.git)(/.*)?$ /pub/git$1$3 Options ExecCGI AddHandler cgi-script cgi @@ -401,6 +401,14 @@ http://git.example.com/project will provide human-friendly gitweb access. +This solution is not 100% bulletproof, in the sense that if some project +has a named ref (branch, tag) starting with 'git/', then paths such as + +http://git.example.com/project/command/abranch..git/abranch + +will fail with a 404 error. + + Originally written by: Kay Sievers