git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* A small change to the gitweb documentation
@ 2012-05-06 23:59 Roy Liu
  0 siblings, 0 replies; only message in thread
From: Roy Liu @ 2012-05-06 23:59 UTC (permalink / raw)
  To: git

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>
 ----------------------------------------------------------------------------

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-06 23:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-06 23:59 A small change to the gitweb documentation Roy Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).