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 787AE18743 for ; Mon, 26 Oct 2015 16:54:31 +0000 (UTC) Received: (qmail 83257 invoked by uid 500); 26 Oct 2015 16:54:27 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 83219 invoked by uid 500); 26 Oct 2015 16:54:27 -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 83209 invoked by uid 99); 26 Oct 2015 16:54:27 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Oct 2015 16:54:27 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 5BA671A0A79 for ; Mon, 26 Oct 2015 16:54:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.879 X-Spam-Level: ** X-Spam-Status: No, score=2.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id rq5ebQ1-ETDm for ; Mon, 26 Oct 2015 16:54:26 +0000 (UTC) Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 3784142BA7 for ; Mon, 26 Oct 2015 16:54:26 +0000 (UTC) Received: by wicfv8 with SMTP id fv8so125383696wic.0 for ; Mon, 26 Oct 2015 09:54:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=EYbAdYn/e715VBtK2VyAUiArbhowR+aJlbyzwveauX8=; b=c6jS3OCiKz324oVtv69ppCW0gBFSCVyBkRerJ5Efh8TPUVNUYsiJcF99MszHcz0PJe L9d8QjFrJ13xawihQY6uCGLdPD/bR1ldJ6dBI6YkzYaN/ojV2XZeqVDi6LQaSSYq776a ul5eBidjHoAs8nhHmPeM5sIu/JQhBRaBhPmO+4UYAH7nfi7ro6eOu8bo2FAdcQXKUyda zQ+UMMRP6Jpxh7b0pOvasZ6ndQBwG8L7MtKezehyhl27X5CskxMlj4HG/Z0jNUQ39Bje uxgCNpbMPtyk8pKR9xlxjwJUsDhYinb91ZDLovSiNzW7xGJekz/w4nI8fT7ZjYaetXLg fgsA== MIME-Version: 1.0 X-Received: by 10.194.187.72 with SMTP id fq8mr41833157wjc.131.1445878465337; Mon, 26 Oct 2015 09:54:25 -0700 (PDT) Received: by 10.27.11.42 with HTTP; Mon, 26 Oct 2015 09:54:25 -0700 (PDT) In-Reply-To: References: Date: Mon, 26 Oct 2015 11:54:25 -0500 Message-ID: From: Itamar Gal To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=047d7bb03a5a50a529052304d0ab Subject: Re: [users@httpd] Sanity Checking mod_rewrite for Apache 2.2 on Ubuntu 12.04 --047d7bb03a5a50a529052304d0ab Content-Type: text/plain; charset=UTF-8 Hey Eric, Thank you for the advice. You hit the nail on the head. The Ubuntu Apache installation comes pre-configured with a catch-all default virtual-host which apparently (as you said) was not inheriting the rewrite settings. Copy-pasting the identical configuration settings into the virtual-host body resulted in the expected behavior. After consulting the documentation again (armed with this new insight) I also noticed the following section: http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#vhosts which describes how to have a virtual host inherit rewrite rules. Apparently the following directives are required in the body of the virtual host: RewriteEngine On RewriteOptions Inherit Thanks again for your help! Cheers, Itamar On Mon, Oct 26, 2015 at 8:35 AM, Eric Covener wrote: > On Mon, Oct 26, 2015 at 9:15 AM, Itamar Gal wrote: > > /etc/apache2/conf.d/security > > Unlike most other settings,. Rewrite rules are not automatically > inherited from the base config to virtual hosts. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > --047d7bb03a5a50a529052304d0ab Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hey Eric,

Thank you for the advice.= You hit the nail on the head. The Ubuntu Apache installation comes pre-con= figured with a catch-all default virtual-host which apparently (as you said= ) was not inheriting the rewrite settings. Copy-pasting the identical confi= guration settings into the virtual-host body resulted in the expected behav= ior. After consulting the documentation again (armed with this new insight)= I also noticed the following section:

which describes how to have a virtual host = inherit rewrite rules. Apparently the following directives are required in = the body of the virtual host:

= RewriteEngine On
RewriteOptions Inherit

Thanks= again for your help!

Cheers,
It= amar


On Mon, Oct 26, 2015 at 8:35 AM, Eric Covener <cov= ener@gmail.com> wrote:
On M= on, Oct 26, 2015 at 9:15 AM, Itamar Gal <itamarggal@gmail.com> wrote:
> /etc/apache2/conf.d/security

Unlike most other settings,. Rewrite rules are not automatically
inherited from the base config to virtual hosts.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


--047d7bb03a5a50a529052304d0ab--