Return-Path: X-Original-To: apmail-httpd-docs-archive@www.apache.org Delivered-To: apmail-httpd-docs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4872210332 for ; Thu, 27 Mar 2014 15:44:27 +0000 (UTC) Received: (qmail 28212 invoked by uid 500); 27 Mar 2014 15:44:25 -0000 Delivered-To: apmail-httpd-docs-archive@httpd.apache.org Received: (qmail 27925 invoked by uid 500); 27 Mar 2014 15:44:19 -0000 Mailing-List: contact docs-help@httpd.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: docs@httpd.apache.org List-Id: Delivered-To: mailing list docs@httpd.apache.org Received: (qmail 27906 invoked by uid 99); 27 Mar 2014 15:44:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Mar 2014 15:44:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.131] (HELO eos.apache.org) (140.211.11.131) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Mar 2014 15:44:16 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id B9C38A45; Thu, 27 Mar 2014 15:43:56 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Thu, 27 Mar 2014 15:43:56 -0000 Message-ID: <20140327154356.53624.80894@eos.apache.org> Subject: =?utf-8?q?=5BHttpd_Wiki=5D_Update_of_=22RewriteLog=22_by_thumbs?= Auto-Submitted: auto-generated X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Httpd Wiki" for cha= nge notification. The "RewriteLog" page has been changed by thumbs: https://wiki.apache.org/httpd/RewriteLog?action=3Ddiff&rev1=3D1&rev2=3D2 Comment: Expanded with 2.2 vs 2.4 differences, fixed links. + =3D Purpose =3D + = + As you build more complex rewrite rules, you may find yourself in a situa= tion where debugging is required. The rewrite log will allow you to examine= the process in which mod_rewrite examines the requested URI, and applies t= he requested patterns. + = + =3D Configuration =3D + = + =3D=3D apache HTTP server 2.4 =3D=3D + = + Logging for mod_rewrite is now in the [[http://httpd.apache.org/docs/curr= ent/mod/core.html#errorlog|ErrorLog]], see [[http://httpd.apache.org/docs/c= urrent/mod/mod_rewrite.html#logging|logging]] + = + =3D=3D apache HTTP server 2.2 (and older) =3D=3D + = + Place the following directives in your vhost, if applicable. Otherwise, p= lace them in the server context: + = + [[http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewriteengine= |RewriteEngine]] on + = + [[http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritelog|Rewrit= eLog]] /path/to/log + = + [[http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewriteloglev= el|RewriteLogLevel]] 5 + = + ''Using a [[http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rew= riteloglevel|RewriteLogLevel]] value higher than 5 will not produce additio= nal logging output'' + = + =3D Recipes =3D + = - This here describes a recipie for creating a RewriteLog that is actually = readable. It is based on Rich Bowen's presentation [[http://people.apache.o= rg/~rbowen/presentations/Apache_Nuts_Bolts_files/|Apache Nuts and Bolts]] + Here is a recipe for creating a rewrite log that is actually readable. It= is based on Rich Bowen's presentation [[http://people.apache.org/~rbowen/p= resentations/Apache_Nuts_Bolts_files/|Apache Nuts and Bolts]] = Config: {{{ --------------------------------------------------------------------- To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org For additional commands, e-mail: docs-help@httpd.apache.org