From: Sylvain Rabot Date: Mon, 22 Mar 2010 22:15:30 GMT Subject: [PATCH] gitweb: readme fixed regarding per user project root repository Message-ID: <1269296130-2237-2-git-send-email-sylvain@abstraction.fr> In-Reply-To: <1269296130-2237-1-git-send-email-sylvain@abstraction.fr> + the RewriteRule '/+' is not working as the '+' character is replaced by a space in urls when you click on links. it is replaced by '/u/' + the RewriteRule '/user/' updated to allow '/user/', '/user//' and '/user//gitweb.cgi' + some typos fixed Signed-off-by: Sylvain Rabot --- gitweb/README | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/gitweb/README b/gitweb/README index ad6a04c..bc90f4d 100644 --- a/gitweb/README +++ b/gitweb/README @@ -347,18 +347,18 @@ something like the following in your gitweb.conf (or gitweb_config.perl) file: $home_link = "/"; -Webserver configuration with multiple projects' root ----------------------------------------------------- +Webserver configuration with multiple project roots +--------------------------------------------------- -If you want to use gitweb with several project roots you can edit your apache -virtual host and gitweb.conf configuration files like this : +If you want to use gitweb with several project roots then you can edit your +apache virtual host and gitweb.conf configuration files like this : virtual host configuration : - ServerName git.example.org - DocumentRoot /pub/git - SetEnv GITWEB_CONFIG /etc/gitweb.conf + ServerName git.example.org + DocumentRoot /pub/git + SetEnv GITWEB_CONFIG /etc/gitweb.conf # turning on mod rewrite RewriteEngine on @@ -368,13 +368,13 @@ virtual host configuration : # look for a public_git folder in unix users' home # http://git.example.org/~/ - RewriteRule ^/\~([^\/]+)(/|/gitweb.cgi)?$ /cgi-bin/gitweb.cgi [QSA,E=GITWEB_PROJECTROOT:/home/$1/public_git/,L,PT] + RewriteRule ^/\~([^\/]+)(/|/gitweb.cgi)?$ /cgi-bin/gitweb.cgi [QSA,E=GITWEB_PROJECTROOT:/home/$1/public_git/,L,PT] - # http://git.example.org/+/ - #RewriteRule ^/\+([^\/]+)(/|/gitweb.cgi)?$ /cgi-bin/gitweb.cgi [QSA,E=GITWEB_PROJECTROOT:/home/$1/public_git/,L,PT] + # http://git.example.org/u// + #RewriteRule ^/\+([^\/]+)(/|/gitweb.cgi)?$ /cgi-bin/gitweb.cgi [QSA,E=GITWEB_PROJECTROOT:/home/$1/public_git/,L,PT] # http://git.example.org/user// - #RewriteRule ^/user/([^\/]+)/(gitweb.cgi)?$ /cgi-bin/gitweb.cgi [QSA,E=GITWEB_PROJECTROOT:/home/$1/public_git/,L,PT] + #RewriteRule ^/user/([^\/]+)(/|/gitweb.cgi)?$ /cgi-bin/gitweb.cgi [QSA,E=GITWEB_PROJECTROOT:/home/$1/public_git/,L,PT] # defined list of project roots RewriteRule ^/scm(/|/gitweb.cgi)?$ /cgi-bin/gitweb.cgi [QSA,E=GITWEB_PROJECTROOT:/pub/scm/,L,PT] -- 1.7.0.3