From owner-freebsd-apache@FreeBSD.ORG Wed Jan 20 15:57:00 2010 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 57BE9106566B for ; Wed, 20 Jan 2010 15:57:00 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id 14BE28FC14 for ; Wed, 20 Jan 2010 15:56:59 +0000 (UTC) Received: from elsa.codelab.cz (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 1EF8E19E019; Wed, 20 Jan 2010 16:56:59 +0100 (CET) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id DEEE119E023; Wed, 20 Jan 2010 16:56:56 +0100 (CET) Message-ID: <4B5727C8.8010906@quip.cz> Date: Wed, 20 Jan 2010 16:56:56 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.7) Gecko/20100104 SeaMonkey/2.0.2 MIME-Version: 1.0 To: "Eugene V. Boontseff" References: <4B57194E.2050501@wdc.spb.ru> In-Reply-To: <4B57194E.2050501@wdc.spb.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-apache@freebsd.org Subject: Re: Errors of mod_rewrite X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jan 2010 15:57:00 -0000 Eugene V. Boontseff wrote: > I'm testing the mod_rewrite modul on my server Apache/2.2.14, FreeBSD > 7.2-RELEASE-p5. > the quotation from httpd-vhosts.conf : > > > ServerAdmin postmaster@spb.4dk > DocumentRoot "/usr/local/www/eg1" > ServerName eg1.spb.4dk > AcceptPathInfo On > > AllowOverride FileInfo Options > Order allow,deny > Allow from all > > > AllowOverride none > Order allow,deny > Allow from all > > php_admin_value mbstring.func_overload 7 > ErrorLog "/var/log/httpd/eg1.error_log" > CustomLog "/var/log/httpd/eg1.access_log" common > > > cat cat > /usr/local/www/eg1/gallery/gallery2/modules/rewrite/data/mod_rewrite/custom/.htaccess > > > # Testing mod_rewrite full functionality > Options +FollowSymLinks > RewriteEngine On > > # Uncomment and edit this line as appropriate to reflect your Gallery > installation. > RewriteBase > /usr/local/www/eg1/gallery/gallery2/modules/rewrite/data/mod_rewrite/custom RewriteBase should be set to URL-path, not a filesystem path: http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritebase > RewriteRule Rewrite.txt Works.txt [L] > > cat > /usr/local/www/eg1/gallery/gallery2/modules/rewrite/data/mod_rewrite/custom/Rewrite.txt > > FAIL_NO_REWRITE > > cat > /usr/local/www/eg1/gallery/gallery2/modules/rewrite/data/mod_rewrite/custom/Works.txt > > Ok! > > Adressing in broser to the URL: > http://eg1.spb.4dk/gallery/gallery2/modules/rewrite/data/mod_rewrite/custom/Rewrite.txt > > > get the following failure report: > > > Not Found > > The requested URL > /usr/local/www/eg1/gallery/gallery2/modules/rewrite/data/mod_rewrite/custom/Works.txt > was not found on this server. > > And in the log was written the following: > > [[Wed Jan 20 15:30:16 2010] [error] [client 10.200.4.248] File does not > exist: /usr/local/www/eg1/usr > ^^^???!!! > Where a mistake could be?