Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 87021200CAB for ; Sun, 18 Jun 2017 23:38:51 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 85881160BE3; Sun, 18 Jun 2017 21:38:51 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CB374160BD1 for ; Sun, 18 Jun 2017 23:38:50 +0200 (CEST) Received: (qmail 98311 invoked by uid 500); 18 Jun 2017 21:38:49 -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 98302 invoked by uid 99); 18 Jun 2017 21:38:49 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Jun 2017 21:38:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 1B2DBC02CA for ; Sun, 18 Jun 2017 21:38:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.824 X-Spam-Level: X-Spam-Status: No, score=-1.824 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796, SPF_SOFTFAIL=0.972] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id ycVA7Ky2sx3Q for ; Sun, 18 Jun 2017 21:38:48 +0000 (UTC) Received: from smtp117.iad3a.emailsrvr.com (smtp117.iad3a.emailsrvr.com [173.203.187.117]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 973B35FB43 for ; Sun, 18 Jun 2017 21:38:47 +0000 (UTC) Received: from smtp31.relay.iad3a.emailsrvr.com (localhost [127.0.0.1]) by smtp31.relay.iad3a.emailsrvr.com (SMTP Server) with ESMTP id D28A124825 for ; Sun, 18 Jun 2017 17:38:41 -0400 (EDT) X-Auth-ID: frank@ccds.ca Received: by smtp31.relay.iad3a.emailsrvr.com (Authenticated sender: frank-AT-ccds.ca) with ESMTPSA id B4A4922D2E for ; Sun, 18 Jun 2017 17:38:41 -0400 (EDT) X-Sender-Id: frank@ccds.ca Received: from [192.168.0.101] (modemcable050.33-57-74.mc.videotron.ca [74.57.33.50]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA) by 0.0.0.0:587 (trex/5.7.12); Sun, 18 Jun 2017 17:38:41 -0400 To: users@httpd.apache.org References: <0cc794ca-4276-9dcd-321d-4265a387c3b0@sharphosting.uk> From: Frank Message-ID: <33a58e82-2542-8267-7c77-2cfac9ba4462@apache.org> Date: Sun, 18 Jun 2017 17:38:41 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <0cc794ca-4276-9dcd-321d-4265a387c3b0@sharphosting.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [users@httpd] AllowOverride - Mis-behaving Default archived-at: Sun, 18 Jun 2017 21:38:51 -0000 On 18/06/17 05:17 PM, Nigel Peck wrote: > > Hi, > > According to the documentation[1], the default for `AllowOverride` is > `None`, and when `AllowOverride` is set to `None`, .htaccess files are > not read at all. > > When I set `AllowOverride` to `None` explicitly, I find that is the > behaviour I see, but when I don't specify it at all, the .htaccess file > is still read and I receive a ".htaccess: [...] not allowed here" error. > So it looks like even though no override is allowed by default, the > `.htaccess` file is still being read when `None` is not specified > explicitly. > > This is with Apache 2.4.6 on CentOS 7, so perhaps it has been fixed in a > later version, but I am not in a position to easily test that, so > thought I'd mention it here in case it's useful. > > If this is expected behaviour then the documentation could be clearer on > this point. It states: > > "When this directive is set to None and AllowOverrideList is set to > None, .htaccess files are completely ignored." > > So leaving it as the default should surely exhibit the same behaviour as > setting the default explicitly? > > Best, > Nigel > > [1] https://httpd.apache.org/docs/2.4/mod/core.html#allowoverride > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > You probably have another block that has AllowOverride set, for the / path or another. Inspect all files shipped by CentOS, and the ones you modified. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org