Include [NE,P] on rewrite rules for Apache proxy

Change-Id: Iad8abbda343f6ac180a2337eab2fc1870a086e4c
diff --git a/Documentation/config-reverseproxy.txt b/Documentation/config-reverseproxy.txt
index c932c0c..0857442 100644
--- a/Documentation/config-reverseproxy.txt
+++ b/Documentation/config-reverseproxy.txt
@@ -55,7 +55,7 @@
 
 	  AllowEncodedSlashes NoDecode
 	  RewriteEngine On
-	  RewriteRule ^/r/(.*) http://localhost:8081/r/$1
+	  RewriteRule ^/r/(.*) http://localhost:8081/r/$1 [NE,P]
 	</VirtualHost>
 ----
 
diff --git a/gerrit-httpd/src/main/resources/com/google/gerrit/httpd/auth/container/ConfigurationError.html b/gerrit-httpd/src/main/resources/com/google/gerrit/httpd/auth/container/ConfigurationError.html
index a7cd489..0bc3369 100644
--- a/gerrit-httpd/src/main/resources/com/google/gerrit/httpd/auth/container/ConfigurationError.html
+++ b/gerrit-httpd/src/main/resources/com/google/gerrit/httpd/auth/container/ConfigurationError.html
@@ -58,7 +58,7 @@
 
     AllowEncodedSlashes NoDecode
     RewriteEngine On
-    RewriteRule ^<span class='ContextPath'>/r</span>/(.*) http://...<span class='ContextPath'>/r</span>/$1
+    RewriteRule ^<span class='ContextPath'>/r</span>/(.*) http://...<span class='ContextPath'>/r</span>/$1 [NE,P]
 &lt;/VirtualHost&gt;
     </pre>
   </body>