Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 96393 invoked from network); 19 Jul 2004 08:00:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 19 Jul 2004 08:00:48 -0000 Received: (qmail 47375 invoked by uid 500); 19 Jul 2004 08:00:32 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 47365 invoked by uid 500); 19 Jul 2004 08:00:31 -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: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 47352 invoked by uid 99); 19 Jul 2004 08:00:31 -0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=URIBL_WS_SURBL X-Spam-Check-By: apache.org Received: from [146.109.240.235] (HELO ns0b.swx.com) (146.109.240.235) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 19 Jul 2004 01:00:28 -0700 Received: from gate0b.unix.swx.ch (gate0b [192.168.252.145]) by ns0b.swx.com (8.12.10/8.12.10) with ESMTP id i6J80Pa0000558 for ; Mon, 19 Jul 2004 10:00:25 +0200 (MEST) Received: from SOMEXEVS001.ex.ordersx.org (localhost [127.0.0.1]) by gate0b.unix.swx.ch (8.12.10/8.12.10) with ESMTP id i6J80OV3004240 for ; Mon, 19 Jul 2004 10:00:25 +0200 (MEST) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 Date: Mon, 19 Jul 2004 10:00:24 +0200 Message-ID: Priority: normal Importance: normal X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] .htaccess 'allow from' and directories Thread-Index: AcRsuj3el2CxOJyrSNuT9Rn3wz7NkQAquAow From: "Boyle Owen" To: X-Virus-Checked: Checked Subject: RE: [users@httpd] .htaccess 'allow from' and directories X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N > -----Original Message----- > From: Nigel Gilbert [mailto:n.gilbert@soc.surrey.ac.uk] > Sent: Sonntag, 18. Juli 2004 13:01 > To: users@httpd.apache.org > Subject: [users@httpd] .htaccess 'allow from' and directories >=20 >=20 > I have an .htaccess file at the top level which allows users in from=20 > specified IP addresses. The allow commands are within a =20 > directive in the .htaccess file. There is also a directive=20 > which allows all users access to index.html. e.g.: >=20 > > Order Allow,Deny > Allow from 206.40 > .... > > > Allow from all > >=20 > The result is that, as expected, all users are allowed to access the=20 > location http://my.domain.com/index.html if they specify this address=20 > explicitly. However, if they try to access the location=20 > http://my.domain.com/ (no explicit index.html) and are not on the=20 > allowed IP list, their access is denied. I would like the=20 > behaviour to=20 > be exactly the same as if they had specified index.html in their URL. >=20 > How can I achieve this? I do not have permissions to change the=20 > httpd.conf file, so any solution needs to be workable using only the=20 > .htaccess context (this excludes using directive, as far=20 > as I can see from the documentation). .htaccess files can only be used to override main config directives if the config allows it (via the AllowOverride directive). Apache is "friendly" so the default for this directive is "AllowOverride All". So if the apache-admin doesn't care, you can simply override the access directives by putting: Allow from all in .htaccess. However, if the apache admin doesn't want you to do this, he will have disabled overrridng in the config (eg, AllowOverride None). Then you can't do it all - neither should you be able to - it's a security feature and if you don't have the right to edit the config, you don't have control of the server. Rgds, Owen Boyle Disclaimer: Any disclaimer attached to this message may be ignored.=20 Diese E-mail ist eine private und pers=F6nliche Kommunikation. Sie hat keinen Bezug zur B=F6rsen- bzw. Gesch=E4ftst=E4tigkeit der SWX Gruppe. = This e-mail is of a private and personal nature. It is not related to the exchange or business activities of the SWX Group. Le pr=E9sent e-mail = est un message priv=E9 et personnel, sans rapport avec l'activit=E9 = boursi=E8re du Groupe SWX. >=20 > Thanks for your help! >=20 > Nigel Gilbert >=20 > ______________________________________________________________ > _________ > Professor Nigel Gilbert, Editor, Journal of Artificial Societies and > Social Simulation, > Centre for Research on Social Simulation (CRESS) > Department of Sociology, University of Surrey, Guildford, UK. > Tel:+44 1483 689173 N.Gilbert@soc.surrey.ac.uk > >=20 >=20 > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP=20 > Server Project. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org >=20 > This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company.=20 --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org