You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Stephen Vaughan <st...@gmail.com> on 2009/08/14 08:30:44 UTC

[users@httpd] Allow directive - limitation?

Hi,

Is there a limitation on the number of characters you can have per line for
'Allow from'?

We a couple of hundred ip addresses listed, however we seem to have hit a
limit whereby any new ip addresses added to the line are being recognised as
a new line, and so apache is failing to reload. Do we have to just create a
new line?

-- 
Best Regards,
Stephen
Sent from Sydney, Nsw, Australia

[users@httpd] Re: Allow directive - limitation?

Posted by LuKreme <kr...@kreme.com>.
On 14-Aug-2009, at 00:30, Stephen Vaughan wrote:
> Is there a limitation on the number of characters you can have per  
> line for
> 'Allow from'?

I don't know about Allow from specifically, but often 'lines' are  
limited internally to eithe 255 characters or 1024 characters. Are you  
around any of those limits?

> We a couple of hundred ip addresses listed, however we seem to have  
> hit a
> limit whereby any new ip addresses added to the line are being  
> recognised as
> a new line, and so apache is failing to reload. Do we have to just  
> create a
> new line?

There's no reason to have one massive Allow from line when you can  
have as many as you want. I tend to group like cases together.

   Allow from 10.0.0.0/8
   Allow from 192.168.211.0/24
   Allow from xx.xx.0.0/16
   Allow from yy.yy.yy.0/24
   Allow from zz.zz.zz.zz

etc

-- 
Is this the light of a new day dawning? A future bright that you
	can walk in? No, it's just another Monday Morning, do it all
	over again!


---------------------------------------------------------------------
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] Allow directive - limitation?

Posted by Nico De Ranter <ni...@sonycom.com>.
There is no need to have everything on one line, you can have multiple
Allow lines.  For instance we use something like this a lot:

<Location "/trac/test">
Order deny,allow
Allow from 10.10.1.0/24
Allow from 10.10.5.0/24
Allow from 127.0.0.1
</Location>

Nico

On Fri, 2009-08-14 at 16:30 +1000, Stephen Vaughan wrote:
> Hi,
> 
> Is there a limitation on the number of characters you can have per
> line for 'Allow from'?
> 
> We a couple of hundred ip addresses listed, however we seem to have
> hit a limit whereby any new ip addresses added to the line are being
> recognised as a new line, and so apache is failing to reload. Do we
> have to just create a new line?
> 
> -- 
> Best Regards,
> Stephen
> Sent from Sydney, Nsw, Australia


---------------------------------------------------------------------
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