{"thread":{"id":"5791","subject":"[PATCH] gitweb: document webserver configuration for common gitweb/repo URLs.","startedAt":"2006-10-03T08:03:28Z","lastAt":"2006-10-03T20:15:38Z","messageCount":3,"participants":["Martin Waitz","Alan Chandler","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"28136","messageId":"20061003080328.GI2871@admingilde.org","threadId":"5791","inReplyTo":null,"subject":"[PATCH] gitweb: document webserver configuration for common gitweb/repo URLs.","fromName":"Martin Waitz","fromEmail":"tali@admingilde.org","sentAt":"2006-10-03T08:03:28Z","receivedAt":"2006-10-03T08:03:28Z","isPatch":true,"sender":{"key":"tali@admingilde.org","avatar":"https://gravatar.com/avatar/3f89b03eee362187effabe257898735b475673a12265c398ea9161259ae91553?d=mp&s=160"},"body":"Add a small apache configuration which shows how to use apache\nto put gitweb and GIT repositories at the same URL.\n\nSigned-off-by: Martin Waitz <tali@admingilde.org>\n---\nI've been running such a configuration on git.admingilde.org for quite\nsome time now, it's time to document it:\n\n gitweb/README |   26 +++++++++++++++++++++++++-\n 1 files changed, 25 insertions(+), 1 deletions(-)\n\ndiff --git a/gitweb/README b/gitweb/README\nindex 27c6dac..61c7ab5 100644\n--- a/gitweb/README\n+++ b/gitweb/README\n@@ -1,4 +1,5 @@\n GIT web Interface\n+=================\n \n The one working on:\n   http://www.kernel.org/git/\n@@ -6,7 +7,8 @@ The one working on:\n From the git version 1.4.0 gitweb is bundled with git.\n \n \n-How to configure gitweb for your local system:\n+How to configure gitweb for your local system\n+---------------------------------------------\n \n You can specify the following configuration variables when building GIT:\n  * GITWEB_SITENAME\n@@ -29,6 +31,28 @@ You can specify the following configurat\n    environment variable will be loaded instead of the file\n    specified when gitweb.cgi was created.\n \n+\n+Webserver configuration\n+-----------------------\n+\n+If you want to have one URL for both gitweb and your http://\n+repositories, you can configure apache like this:\n+\n+<VirtualHost www:80>\n+    ServerName git.domain.org\n+    DocumentRoot /pub/git\n+    RewriteEngine on\n+    RewriteRule ^/(.*\\.git/(?!/?(info|objects|refs)).*)?$ /cgi-bin/gitweb.cgi%{REQUEST_URI}  [L,PT]\n+</VirtualHost>\n+\n+The above configuration expects your public repositories to live under\n+/pub/git and will serve them as http://git.domain.org/dir-under-pub-git,\n+both as cloneable GIT URL and as browseable gitweb interface.\n+If you then start your git-daemon with --base-path=/pub/git --export-all\n+then you can even use the git:// URL with exactly the same path.\n+\n+\n+\n Originally written by:\n   Kay Sievers <kay.sievers@vrfy.org>\n \n-- \n1.4.2.gb8b6b\n\n-- \nMartin Waitz\n"},{"id":"28156","messageId":"E1GUkQe-0007qU-AN@home.chandlerfamily.org.uk","threadId":"5791","inReplyTo":"20061003080328.GI2871@admingilde.org","subject":"Re: [PATCH] gitweb: document webserver configuration for common gitweb/repo URLs.","fromName":"Alan Chandler","fromEmail":"alan@chandlerfamily.org.uk","sentAt":"2006-10-03T13:35:24Z","receivedAt":"2006-10-03T13:35:24Z","isPatch":true,"sender":{"key":"alan@chandlerfamily.org.uk","avatar":"https://gravatar.com/avatar/1862247e5ea8eac114c842f9dc3a5db6253754e24ef7171757cf97eedce48b8c?d=mp&s=160"},"body":"Martin Waitz writes: \n\n> Add a small apache configuration which shows how to use apache\n> to put gitweb and GIT repositories at the same URL. \n> \n \n\nIt might be helpful to include \n\nSetEnv GITWEB_CONFIG /etc/gitweb.conf \n\nin that little apache snippet, to show how specify a config file for gitweb. \n\n \n\n --\nAlan Chandler\nalan@chandlerfamily.org.uk\n(via webmail - normally means I am not at my computer)\n"},{"id":"28180","messageId":"7v1wppnok5.fsf@assigned-by-dhcp.cox.net","threadId":"5791","inReplyTo":"E1GUkQe-0007qU-AN@home.chandlerfamily.org.uk","subject":"Re: [PATCH] gitweb: document webserver configuration for common gitweb/repo URLs.","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-10-03T20:15:38Z","receivedAt":"2006-10-03T20:15:38Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"Alan Chandler\" <alan@chandlerfamily.org.uk> writes:\n\n> Martin Waitz writes:\n>\n>> Add a small apache configuration which shows how to use apache\n>> to put gitweb and GIT repositories at the same URL.\n>\n> It might be helpful to include\n>\n> SetEnv GITWEB_CONFIG /etc/gitweb.conf\n>\n> in that little apache snippet, to show how specify a config file for\n> gitweb.\n\nI agree.  Please make it so by sending in a one-liner patch with\nsign-off so that we can get attribution right without minimum\nfuss.\n"}]}