git/list[1] front-page[2] threads[3] people[4] search[5] about
 

A small change to the gitweb documentation

From
RLRoy Liu <roy@eschatonlabs.com>
Date
May 6, 2012, 23:59 UTC
Message-ID
<CAOZa66yEnrC1bMVVLCzGJgqqWryg1Kt0AnP54YftASudG5zt7w@mail.gmail.com>
Hi,

When reading the Apache server mod_rewrite documentation, I noticed that it had this to say about the "PT" (passthrough) option:

The PT flag implies the L flag: rewriting will be stopped in order to pass the request to the next phase of processing.

Current, the gitweb documentation has a mod_rewrite example that uses the option "[L,PT]". Since the "L" is probably redundant, I propose the following patch:

Regards, Roy

diff --git a/Documentation/gitweb.txt b/Documentation/gitweb.txt
index 168e8bf..eb16bbd 100644
--- a/Documentation/gitweb.txt
+++ b/Documentation/gitweb.txt
@@ -633,7 +633,7 @@ complementary static files (stylesheet, favicon,
JavaScript):
        RewriteEngine On
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
-       RewriteRule ^.* /gitweb.cgi/$0 [L,PT]
+       RewriteRule ^.* /gitweb.cgi/$0 [PT]
    </Directory>
 </VirtualHost>
 ----------------------------------------------------------------------------
@@ -664,7 +664,7 @@ named *without* a .git extension (e.g.
'/pub/git/project' instead of
        RewriteEngine On
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
-       RewriteRule ^.* /gitweb.cgi/$0 [L,PT]
+       RewriteRule ^.* /gitweb.cgi/$0 [PT]
    </Directory>
 </VirtualHost>
 ----------------------------------------------------------------------------
Message 1 of 1 in “A small change to the gitweb documentation”
  1. Roy LiuMay 6, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.