From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Qvbjy-0002Lu-Ai for garchives@archives.gentoo.org; Mon, 22 Aug 2011 21:09:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C938A21C37B; Mon, 22 Aug 2011 21:08:51 +0000 (UTC) Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.213.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 404D921C39C for ; Mon, 22 Aug 2011 21:07:51 +0000 (UTC) Received: by yxk38 with SMTP id 38so2526600yxk.40 for ; Mon, 22 Aug 2011 14:07:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=is3K6PWX11fSgUjUkX6YB3HBs0xWpI6NDbSD75L0R2A=; b=NTfFvu/ld1oqdnrERMRIzLcUOcJE1hqmFnA6ECqWvX+ZIlzjJtepDohlnZc69tSfZ2 xa0lyyTsOFmxkjb0XShxhgCUd80KHcxd8NJS66m4azJyxDne80cUIhcXQZGajx+NzLmi m60hCxl7TgbgEpWgs4xGHGy5zT5LIDrT3ubIQ= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.236.181.135 with SMTP id l7mr17927979yhm.85.1314047270657; Mon, 22 Aug 2011 14:07:50 -0700 (PDT) Received: by 10.236.207.67 with HTTP; Mon, 22 Aug 2011 14:07:50 -0700 (PDT) Date: Mon, 22 Aug 2011 14:07:50 -0700 Message-ID: Subject: [gentoo-user] [Apache HTTPD] Why doesn't my RewriteRule fire? From: Hilco Wijbenga To: Gentoo User Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: X-Archives-Hash: 76cbb3deebd498f1c655f5a4d1d9a11e Hi all, I hope some Apache guru can help me out. I must be missing something very obvious. Assume a default Apache 2.2.17 with all modules installed and -D PROXY -D INFO in /etc/conf.d/apache2. My update to the default VHOST: ForensicLog /var/log/apache2/forensic.log ProxyRequests off RewriteEngine on RewriteLogLevel 9 RewriteLog /var/log/apache2/rewrite.log ServerName localhost ServerAdmin root@localhost DocumentRoot "/var/www/localhost/htdocs" Options Indexes FollowSymLinks AllowOverride All Order deny,allow Deny from all Allow from 127.0.0.1 RewriteRule ^/website$ http://localhost/website/ [T] ProxyPassMatch ^/website/(.*)$ http://localhost:8000/website/$1 The ProxyPassMatch fires but (AFAICT) the RewriteRule does not. I.e. http://localhost/website (no slash) ==> 404 (in fact, it's trying to serve /var/www/localhost/htdocs/website) but http://localhost/website (with slash) ==> works. Why does the RewriteRule not run? FYI, rewrite.log is created but stays empty. I don't see any errors or warnings in access.log or error.log. Cheers, Hilco