Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 69BB79E57 for ; Thu, 8 Dec 2011 23:33:42 +0000 (UTC) Received: (qmail 89213 invoked by uid 500); 8 Dec 2011 23:33:39 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 89187 invoked by uid 500); 8 Dec 2011 23:33:39 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 89179 invoked by uid 99); 8 Dec 2011 23:33:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2011 23:33:39 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of apache-users@m.gmane.org designates 80.91.229.12 as permitted sender) Received: from [80.91.229.12] (HELO lo.gmane.org) (80.91.229.12) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2011 23:33:33 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RYnSh-0006PF-Sf for users@httpd.apache.org; Fri, 09 Dec 2011 00:33:11 +0100 Received: from p57915e03.dip.t-dialin.net ([87.145.94.3]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Dec 2011 00:33:11 +0100 Received: from jumper99 by p57915e03.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Dec 2011 00:33:11 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: users@httpd.apache.org From: "Helmut Schneider" Date: Thu, 8 Dec 2011 23:32:58 +0000 (UTC) Lines: 79 Message-ID: References: <4EDFDB89.5090501@catseye.org> <4EE0CB42.4010301@catseye.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: p57915e03.dip.t-dialin.net User-Agent: XanaNews/1.19.1.320 X-Ref: news.gmane.org ~XNS:00000227 X-Antivirus: avast! (VPS 111208-1, 08.12.2011), Outbound message X-Antivirus-Status: Clean Subject: [users@httpd] Re: IfModule *rewrite* Mark Montague wrote: > On December 8, 2011 5:56 , "Helmut Schneider" wrote: > > Do I also need to configure RewriteLog within the VHOST?! Is that > > also a "Rewrite configuration"?! Because only setting > > RewriteEngine On does not write a logfile... > > Did you read the documentation? Sure, but I might miss the forest through the trees. > https://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriteengine Read it again, also https://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritelog, still unsure. > "Context: server config, virtual host" > "The directive should occur only once per server config." > "If the name does not begin with a slash ('|/|') then it is assumed > to be relative to the /Server Root/." > > If you are using RewriteLog in the server context but are not seeing > a log file: If I specify RewriteLog within the server context it does not write the logfile. If I specify RewriteLog within the virtual host context, it does. RewriteLog is the only option I change, I do not touch any other options. > - What is the value you have for RewriteLogLevel? 2, specified in both, the server and the vhost context. > Are you looking in the right place? I hope so. The vhost context is just ~20 lines below the server context. > (Does the log file name begin with a slash?) Yes. > - Does Apache HTTP Server have permission to open and > write the log file in the place you have specified? Sure. As mentioned before, when specifiying the (no doubt identical) directive within the vhost it works like a charm. > - Are there error messages about creating/opening the log file > in your web server error log file? No. But see above. Server context: RewriteEngine on RewriteLog /var/www/logs/rewrite.log RewriteLogLevel 2 Vhost context: RewriteEngine on #RewriteLog /var/www/logs/rewrite.log RewriteLogLevel 2 $some_conditions_and_rules => Rewrite works, logging does not. Server context: RewriteEngine on (#)RewriteLog /var/www/logs/rewrite.log RewriteLogLevel 2 Vhost context: RewriteEngine on RewriteLog /var/www/logs/rewrite.log RewriteLogLevel 2 $some_conditions_and_rules => Rewrite works, so does logging. Also removed the "" tags, no difference. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org