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 9721918DB2 for ; Thu, 30 Jul 2015 06:42:40 +0000 (UTC) Received: (qmail 15614 invoked by uid 500); 30 Jul 2015 06:42:37 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 15577 invoked by uid 500); 30 Jul 2015 06:42:37 -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 15567 invoked by uid 99); 30 Jul 2015 06:42:37 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jul 2015 06:42:36 +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 932551A8B2C for ; Thu, 30 Jul 2015 06:42:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.11 X-Spam-Level: X-Spam-Status: No, score=-0.11 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=lrz.de Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id nadXyQK3SX2t for ; Thu, 30 Jul 2015 06:42:31 +0000 (UTC) Received: from postout2.mail.lrz.de (postout2.mail.lrz.de [129.187.255.138]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 5ECD4210DF for ; Thu, 30 Jul 2015 06:42:30 +0000 (UTC) Received: from lxmhs52.srv.lrz.de (localhost [127.0.0.1]) by postout2.mail.lrz.de (Postfix) with ESMTP id 3mhhxV3WG0zySZ for ; Thu, 30 Jul 2015 08:42:22 +0200 (CEST) Authentication-Results: postout.lrz.de (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=lrz.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lrz.de; h= content-transfer-encoding:content-type:content-type:in-reply-to :mime-version:user-agent:date:date:message-id:organization:from :from:references:subject:subject:received:received; s=postout; t=1438238542; bh=nqJ+7r6SJq5qeo+l+fomtw9F8+7mYOvYe1baHEHXC6U=; b= iHEu4RyHSzLdd+dEy5pIR9hiPRxFhYxg8EplMYowXET0r95JjGMpgK2a8jtvQKD3 2dsrhzZ89WpQqDhPziMxtoG6zgpruzzk/rcEFb0SrrA++xGdQv8itY4rW5qSFzQb mxl1mkF/DalH35SgKfZ/WhI1kHlH9/u8PCTRpI05kcnRXbRCOQWWsHkUeruau8Qs gurf5U8jBhgik4FNqfWjMyQQ7zr3kjJ0aYpJrxp9jUJ7j+j0d0Y6CCl1IFCFYyyC BgkXM31a1W5lFM8vzdrTp8MXjtnOK3VsPKV1c+uNV9ziyBLinH8XiqESj94x63nX 1Cp2BotDfVxe3hNVvuoe2w== X-Virus-Scanned: by amavisd-new at lrz.de in lxmhs52.srv.lrz.de Received: from postout2.mail.lrz.de ([127.0.0.1]) by lxmhs52.srv.lrz.de (lxmhs52.srv.lrz.de [127.0.0.1]) (amavisd-new, port 20024) with LMTP id ef5petboIY3g for ; Thu, 30 Jul 2015 08:42:22 +0200 (CEST) Received: from [IPv6:2001:4ca0:0:f000:e935:c76b:f7bb:86e5] (unknown [IPv6:2001:4ca0:0:f000:e935:c76b:f7bb:86e5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by postout2.mail.lrz.de (Postfix) with ESMTPSA id 3mhhxT6WlQzyRZ for ; Thu, 30 Jul 2015 08:42:21 +0200 (CEST) To: users@httpd.apache.org References: <55B94DDC.10308@lists.scuzzyeye.com> From: Tobias Adolph Organization: Leibniz-Rechenzentrum der Bayrischen Akademie der Wissenschaften Message-ID: <55B9C74D.1070304@lrz.de> Date: Thu, 30 Jul 2015 08:42:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <55B94DDC.10308@lists.scuzzyeye.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [users@httpd] Deny, Allow with Apache 2.4 Hi Chris, Am 30.07.2015 um 00:04 schrieb ScuzzyEye: > I'm having a difficult time figuring out how to convert an Apache 2.2 > access rule to 2.4. > > What I'm doing in 2.2 is pretty simple: > > order deny,allow > deny from 192.168.1.0/24 > deny from 192.168.2.0/24 > allow from 192.168.1.12 > > So denying some sub-nets, but allowing one IP in that range, and the > rest of the world. > Try this one: Require ip 192.168.1.12 Require all granted Require not ip 192.168.1.0/24 Require not ip 192.168.2.0/24 Kind regards, Tobias Adolph --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org