{"thread":{"id":"20370","subject":"[PATCH] gitweb/README: Document $base_url","startedAt":"2009-08-04T15:54:32Z","lastAt":"2009-08-04T15:54:32Z","messageCount":1,"participants":["Jakub Narebski"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"119502","messageId":"20090804155309.30788.77292.stgit@localhost.localdomain","threadId":"20370","inReplyTo":null,"subject":"[PATCH] gitweb/README: Document $base_url","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2009-08-04T15:54:32Z","receivedAt":"2009-08-04T15:54:32Z","isPatch":true,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Signed-off-by: Jakub Narebski <jnareb@gmail.com>\n---\n > Or you can set up $base_url in your gitweb configuration file (which\n > is not mentioned in the gitweb/README, unfortunately).\n\nSo now it is documented.\n\n gitweb/README |    6 ++++++\n 1 files changed, 6 insertions(+), 0 deletions(-)\n\ndiff --git a/gitweb/README b/gitweb/README\nindex 9056d1e..baacddd 100644\n--- a/gitweb/README\n+++ b/gitweb/README\n@@ -165,6 +165,12 @@ not include variables usually directly set during build):\n    Full URL and absolute URL of gitweb script;\n    in earlier versions of gitweb you might have need to set those\n    variables, now there should be no need to do it.\n+ * $base_url\n+   Base URL for relative URLs in pages generated by gitweb, \n+   (e.g. $logo, $favicon, @stylesheets if they are relative URLs),\n+   needed and used only for URLs with nonempty PATH_INFO via\n+   <base href=\"$base_url>.  Usually gitweb sets its value correctly,\n+   and there is no need to set this variable, e.g. to $my_uri or \"/\".\n  * $home_link\n    Target of the home link on top of all pages (the first part of view\n    \"breadcrumbs\").  By default set to absolute URI of a page ($my_uri).\n"}]}