 |
|
 |
|
Next: Apache - Popup
|
| Author |
Message |
External

Since: Nov 10, 2003 Posts: 2
|
(Msg. 1) Posted: Mon Nov 10, 2003 1:52 pm
Post subject: URGENT: deny,allow question (EASY) Archived from groups: alt>apache>configuration (more info?)
|
|
|
Hi
I need to allow people at 10.1.*.* and 10.2.*.* to access a certain
location, but I need to prevent people at 10.1.65.* to do so.
Will this work:
<Location "/mylocation/*">
Order deny,allow
deny from 10.1.65/255.255.255.0
allow from 10.1 10.2
</Location>
I mean, even though 10.1.* includes 10.1.65, will the DENY actually
short-circuit the evaluation and prevent the allo directive from being
processed ?
If not, how can I achieve this ? >> Stay informed about: URGENT: deny,allow question (EASY) |
|
| Back to top |
|
 |  |
External

Since: Oct 21, 2003 Posts: 34
|
(Msg. 2) Posted: Mon Nov 10, 2003 3:34 pm
Post subject: Re: URGENT: deny,allow question (EASY) [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Guy Dallaire wrote:
> Hi
>
> I need to allow people at 10.1.*.* and 10.2.*.* to access a certain
> location, but I need to prevent people at 10.1.65.* to do so.
>
> Will this work:
>
> <Location "/mylocation/*">
> Order deny,allow
> deny from 10.1.65/255.255.255.0
> allow from 10.1 10.2
> </Location>
you should set it up the other way around (I prefer CIDR notation):
Order allow,deny
Allow from 10.1.0.0/16
Allow from 10.2.0.0/16
Deny from 10.1.65.0/24
>
> I mean, even though 10.1.* includes 10.1.65, will the DENY actually
> short-circuit the evaluation and prevent the allo directive from being
> processed ?
your way, although it first denies access, it allows it again.
see:
<a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/mod_access.html#order" target="_blank">http://httpd.apache.org/docs-2.0/mod/mod_access.html#order</a>
>
> If not, how can I achieve this ?
HTH
--
Robi<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: URGENT: deny,allow question (EASY) |
|
| Back to top |
|
 |  |
External

Since: Nov 10, 2003 Posts: 2
|
(Msg. 3) Posted: Mon Nov 10, 2003 6:06 pm
Post subject: Re: URGENT: deny,allow question (EASY) [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
thanks
"Robi" <me.RemoveThis@privacy.net> a écrit dans le message de
news:boolg6$1g9o7t$1@ID-211961.news.uni-berlin.de...
> Guy Dallaire wrote:
> > Hi
> >
> > I need to allow people at 10.1.*.* and 10.2.*.* to access a certain
> > location, but I need to prevent people at 10.1.65.* to do so.
> >
> > Will this work:
> >
> > <Location "/mylocation/*">
> > Order deny,allow
> > deny from 10.1.65/255.255.255.0
> > allow from 10.1 10.2
> > </Location>
>
>
> you should set it up the other way around (I prefer CIDR notation):
>
> Order allow,deny
> Allow from 10.1.0.0/16
> Allow from 10.2.0.0/16
> Deny from 10.1.65.0/24
>
> >
> > I mean, even though 10.1.* includes 10.1.65, will the DENY actually
> > short-circuit the evaluation and prevent the allo directive from being
> > processed ?
>
> your way, although it first denies access, it allows it again.
>
> see:
<font color=purple> > <a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/mod_access.html#order</font" target="_blank">http://httpd.apache.org/docs-2.0/mod/mod_access.html#order</font</a>>
>
> >
> > If not, how can I achieve this ?
>
> HTH
>
>
> --
> Robi<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: URGENT: deny,allow question (EASY) |
|
| Back to top |
|
 |  |
| Related Topics: | Deny not allowed here - I get this error when I try to set op a restriction i .htaccess: Deny not allowed here What is wrong ?
allow,deny groups? - Hi, Is it possible to create a group that contains all the IP & domains that I want to allow access, and simply state in a <directory> allow from group1 or similar? Thanks Rich.
Easy Config of Apache - Is there a "Free Program" that will help me config Apache? with having to do everything by hand? I am a ex IIS user and I am totally lost.... :) thanks
Apache sub domains... should be an easy fix - i am having a problem setting up multiple domains with sub domains here is sample from config file NameVirtualHost * <VirtualHost *> DocumentRoot /www/docs/1guideusa.com ServerName www.1guideusa.com </VirtualHost> <VirtualHost ...
Newbie seeks... an easy way - Does anyone know of a complete idiots guide to actually getting apache up and running? I have installed on XP and am reading through the docs but this is a learning expereince for me after moving from IIS where, lets be honest, you are very much taken.. |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|