You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Pantelis Hadzipantelis <ph...@tsrtech.net> on 2003/02/24 19:09:20 UTC

[users@httpd] Little help...

Hi Guys,
 
            I need a little help,
 
I'm running Apache 1.3 w/ PHP support (no ssl).
 
I have 2 folders in my /usr/local/apache/htdocs/
 
I have /webmail and /squirrelmail
 
Is there a directive or a way to limit access to these folders individually
by IP address ranges? Thanks.
 
Regards,
--------------------------------------------------------------------
Pantelis Hadzipantelis
TSR Technologies Inc.
Linux Specialist
2421 Guenette, St-Laurent
Quebec, H4R 2E9
tel. 514-731-3418 fax. 514-731-3562
email. phadzi@tsrtech.net web. www.tsrtech.net
--------------------------------------------------------------------
 

Re: [users@httpd] Little help...

Posted by Breno Cardoso Perucchi <br...@omegatec.net>.
All of the directories

 <Directory "/">
  ......
        Order allow,deny
  Deny from all
        Allow from (net.work.id.0/sub-musk) 192.168.0.0/24
   </Directory>
Breno Cardoso Perucchi
breno@omegatec.net

----- Original Message -----
From: "Pantelis Hadzipantelis" <ph...@tsrtech.net>
To: <us...@httpd.apache.org>
Sent: Monday, February 24, 2003 3:09 PM
Subject: [users@httpd] Little help...


> Hi Guys,
>
>             I need a little help,
>
> I'm running Apache 1.3 w/ PHP support (no ssl).
>
> I have 2 folders in my /usr/local/apache/htdocs/
>
> I have /webmail and /squirrelmail
>
> Is there a directive or a way to limit access to these folders
individually
> by IP address ranges? Thanks.
>
> Regards,
> --------------------------------------------------------------------
> Pantelis Hadzipantelis
> TSR Technologies Inc.
> Linux Specialist
> 2421 Guenette, St-Laurent
> Quebec, H4R 2E9
> tel. 514-731-3418 fax. 514-731-3562
> email. phadzi@tsrtech.net web. www.tsrtech.net
> --------------------------------------------------------------------
>
>


----------------------------------------------------------------------------
----


> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> 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


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


RE: [users@httpd] Little help...

Posted by Joshua Slive <jo...@slive.ca>.
On Wed, 26 Feb 2003, Pantelis Hadzipantelis wrote:

> Doesn't work
>
> I put the following:
>
> <Directory "/Webmail"/>
> 	Order allow,deny
> 	Deny from all
> 	Allow from 128.127.0.0/255.255.0.0
> </Directory>

See the documentation on "Order".  With that configuration, the "Deny from
all" is evaluated last, so everything is denied.  Try using "Order
deny,allow", or just removing the "Deny from all".

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


RE: [users@httpd] Little help...

Posted by Jeff Cohen <ap...@gej-it.com>.
You're right. My mistake while writing it :)
Sorry..
Jeff Cohen

> -----Original Message-----
> From: Rich Bowen [mailto:rbowen@rcbowen.com]
> Sent: Wednesday, February 26, 2003 8:33 PM
> To: users@httpd.apache.org
> Subject: RE: [users@httpd] Little help...
> 
> On Wed, 26 Feb 2003, Jeff Cohen wrote:
> 
> > Try:
> >  <Directory "/Webmail/">
> >  	Order allow,deny
> > 	Allow from 128.127.0.0/16
> > 	Deny from all
> >  </Directory>
> 
> Because the deny rule is applied after the allow rule, this combination
> will have the effect of denying all clients.
> 
> I'm pretty sure that what you are looking for is
> 
> order deny,allow
> deny from all
> allow from 128.127
> 
> >
> > > -----Original Message-----
> > > From: Pantelis Hadzipantelis [mailto:phadzi@tsrtech.net]
> > > Sent: Wednesday, February 26, 2003 2:46 PM
> > > To: users@httpd.apache.org
> > > Subject: RE: [users@httpd] Little help...
> > >
> > > Doesn't work
> > >
> > > I put the following:
> > >
> > > <Directory "/Webmail"/>
> > > 	Order allow,deny
> > > 	Deny from all
> > > 	Allow from 128.127.0.0/255.255.0.0
> > > </Directory>
> > >
> > > I also tried:
> > >
> > > <Directory "/Webmail"/>
> > > 	Order allow,deny
> > > 	Deny from all
> > > 	Allow from 128.127.0.0/16
> > > </Directory>
> > >
> > >
> > > Am I doing it wrong?
> > >
> >
> >


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


RE: [users@httpd] Little help...

Posted by Rich Bowen <rb...@rcbowen.com>.
On Wed, 26 Feb 2003, Jeff Cohen wrote:

> Try:
>  <Directory "/Webmail/">
>  	Order allow,deny
> 	Allow from 128.127.0.0/16
> 	Deny from all
>  </Directory>

Because the deny rule is applied after the allow rule, this combination
will have the effect of denying all clients.

I'm pretty sure that what you are looking for is

order deny,allow
deny from all
allow from 128.127

>
> > -----Original Message-----
> > From: Pantelis Hadzipantelis [mailto:phadzi@tsrtech.net]
> > Sent: Wednesday, February 26, 2003 2:46 PM
> > To: users@httpd.apache.org
> > Subject: RE: [users@httpd] Little help...
> >
> > Doesn't work
> >
> > I put the following:
> >
> > <Directory "/Webmail"/>
> > 	Order allow,deny
> > 	Deny from all
> > 	Allow from 128.127.0.0/255.255.0.0
> > </Directory>
> >
> > I also tried:
> >
> > <Directory "/Webmail"/>
> > 	Order allow,deny
> > 	Deny from all
> > 	Allow from 128.127.0.0/16
> > </Directory>
> >
> >
> > Am I doing it wrong?
> >
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> 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
>
>

-- 
Pilgrim, how you journey on the road you chose
To find out where the winds die and where the stories go
 --Pilgrim (Enya - A Day Without Rain)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


RE: [users@httpd] Little help...

Posted by Jeff Cohen <ap...@gej-it.com>.
Try:
 <Directory "/Webmail/">
 	Order allow,deny
	Allow from 128.127.0.0/16
	Deny from all
 </Directory>

All the best,
Jeff Cohen (and not Breno Cardoso Perucchi)!

> -----Original Message-----
> From: Pantelis Hadzipantelis [mailto:phadzi@tsrtech.net]
> Sent: Wednesday, February 26, 2003 2:46 PM
> To: users@httpd.apache.org
> Subject: RE: [users@httpd] Little help...
> 
> Doesn't work
> 
> I put the following:
> 
> <Directory "/Webmail"/>
> 	Order allow,deny
> 	Deny from all
> 	Allow from 128.127.0.0/255.255.0.0
> </Directory>
> 
> I also tried:
> 
> <Directory "/Webmail"/>
> 	Order allow,deny
> 	Deny from all
> 	Allow from 128.127.0.0/16
> </Directory>
> 
> 
> Am I doing it wrong?
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


RE: [users@httpd] Little help...

Posted by Pantelis Hadzipantelis <ph...@tsrtech.net>.
Doesn't work

I put the following:

<Directory "/Webmail"/>
	Order allow,deny
	Deny from all
	Allow from 128.127.0.0/255.255.0.0
</Directory>

I also tried:

<Directory "/Webmail"/>
	Order allow,deny
	Deny from all
	Allow from 128.127.0.0/16
</Directory>


Am I doing it wrong?

--------------------------------------------------------------------
Pantelis Hadzipantelis
TSR Technologies Inc.
Linux Specialist
2421 Guenette, St-Laurent
Quebec, H4R 2E9
tel. 514-731-3418 fax. 514-731-3562
email. phadzi@tsrtech.net web. www.tsrtech.net
--------------------------------------------------------------------

-----Original Message-----
From: Jeff Cohen [mailto:apache@gej-it.com] 
Sent: Monday, February 24, 2003 1:16 PM
To: users@httpd.apache.org; phadzi@tsrtech.net
Subject: RE: [users@httpd] Little help...

Yes! 
   <Directory "/path/to/dir">
	  ......
        Order allow,deny
	  Deny from all
        Allow from (net.work.id.0/sub-musk) 192.168.0.0/24
   </Directory>

-----Original Message-----
From: Pantelis Hadzipantelis [mailto:phadzi@tsrtech.net] 
Sent: Monday, February 24, 2003 1:09 PM
To: users@httpd.apache.org
Subject: [users@httpd] Little help...

Hi Guys,

	I need a little help,

I'm running Apache 1.3 w/ PHP support (no ssl).

I have 2 folders in my /usr/local/apache/htdocs/

I have /webmail and /squirrelmail

Is there a directive or a way to limit access to these folders
individually
by IP address ranges? Thanks.

Regards,
--------------------------------------------------------------------
Pantelis Hadzipantelis
TSR Technologies Inc.
Linux Specialist
2421 Guenette, St-Laurent
Quebec, H4R 2E9
tel. 514-731-3418 fax. 514-731-3562
email. phadzi@tsrtech.net web. www.tsrtech.net
--------------------------------------------------------------------


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> 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



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


RE: [users@httpd] Little help...

Posted by Jeff Cohen <ap...@gej-it.com>.
Yes! 
   <Directory "/path/to/dir">
	  ......
        Order allow,deny
	  Deny from all
        Allow from (net.work.id.0/sub-musk) 192.168.0.0/24
   </Directory>

-----Original Message-----
From: Pantelis Hadzipantelis [mailto:phadzi@tsrtech.net] 
Sent: Monday, February 24, 2003 1:09 PM
To: users@httpd.apache.org
Subject: [users@httpd] Little help...

Hi Guys,

	I need a little help,

I'm running Apache 1.3 w/ PHP support (no ssl).

I have 2 folders in my /usr/local/apache/htdocs/

I have /webmail and /squirrelmail

Is there a directive or a way to limit access to these folders individually
by IP address ranges? Thanks.

Regards,
--------------------------------------------------------------------
Pantelis Hadzipantelis
TSR Technologies Inc.
Linux Specialist
2421 Guenette, St-Laurent
Quebec, H4R 2E9
tel. 514-731-3418 fax. 514-731-3562
email. phadzi@tsrtech.net web. www.tsrtech.net
--------------------------------------------------------------------


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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