You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by krip vorlund <mu...@hotmail.com> on 2003/04/10 17:50:16 UTC

[users@httpd] .htaccess allow question

Apache 1.3 and older Stronghold under Linux

I have a customer who has reached the limit of Allow entries.
Is there a way to increse the number of Allow entries in .htaccess?

Another alternative is does apache allow IP restrictions with ranges suche 
as a.b.c.d-e for a.b.c.d through a.b.c.e?  I know about the netmask forms 
like a.b.c.d/x and a.b.c.d/w.x.y.z but the customer does not know how to 
generate them.  I'd prefer the customer be able to handle this without 
asking me to do the masks.

I have checked the documentation at apache.org.  I did not find any 
reference to the ip-ip format, though I may well have missed it.

Thanks




_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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


[users@httpd] Mod LDAP question

Posted by Michael Crawford <cr...@mun.ca>.

I'm trying to compile mod_ldap and mod_auth_ldap on 2.0.45 under Solaris 8
and I'm getting some errors... can anyone help me with this... The output
from make is:

<snip>
pache-d/httpd-2.0.45/include -I/local/include/openssl -I/local/include
-I/local/
src/apache-d/httpd-2.0.45/modules/dav/main -prefer-non-pic -static -c
util_ldap.
c && touch util_ldap.lo
util_ldap.c:81:2: #error mod_ldap requires APR-util to have LDAP support
built i
n
util_ldap.c: In function `util_ldap_handler':
util_ldap.c:174: warning: passing arg 1 of `ap_rputs' makes pointer from
integer
 without a cast
util_ldap.c: At top level:
util_ldap.c:189: parse error before "util_ldap_connection_close"
util_ldap.c:189: parse error before '*' token
util_ldap.c: In function `util_ldap_connection_close':
util_ldap.c:206: `ldc' undeclared (first use in this function)
util_ldap.c:206: (Each undeclared identifier is reported only once
util_ldap.c:206: for each function it appears in.)
util_ldap.c: At top level:
util_ldap.c:216: parse error before "util_ldap_connection_destroy"
util_ldap.c: In function `util_ldap_connection_destroy':
util_ldap.c:218: `util_ldap_connection_t' undeclared (first use in this
function
)
util_ldap.c:218: `ldc' undeclared (first use in this function)
util_ldap.c:218: invalid lvalue in assignment
util_ldap.c: At top level:

and then goes on witha pile of 'undeclared' errors...

ideas?

-- 
Cheers,
        Michael

**************************************************************
Michael Crawford              | Memorial University of
Systems Administrator      | Newfoundland
**************************************************************


---------------------------------------------------------------------
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] .htaccess allow question

Posted by Joshua Slive <jo...@slive.ca>.
On Thu, 10 Apr 2003, krip vorlund wrote:

> Apache 1.3 and older Stronghold under Linux
>
> I have a customer who has reached the limit of Allow entries.
> Is there a way to increse the number of Allow entries in .htaccess?

There is no limit to the number of Allow entries as far as I know.  A
large .htaccess file will, of course, slow down the server.

> Another alternative is does apache allow IP restrictions with ranges suche
> as a.b.c.d-e for a.b.c.d through a.b.c.e?  I know about the netmask forms
> like a.b.c.d/x and a.b.c.d/w.x.y.z but the customer does not know how to
> generate them.  I'd prefer the customer be able to handle this without
> asking me to do the masks.

No, this is not possible.  You could do something similar with
mod_rewrite, but this will wind up being more complicated instead of less.

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] Need help with a RewriteCond Statement (http/https)

Posted by Mike <mi...@levrah.net>.
Andrea.

Just a quick follow-up. "...https?..." did in fact work. Thanks so much.

(for everyone else, pardon the excess use of bandwidth just for a thank 
you, but thank you's come few and far between too often in today's world. 
Thanks again Andrea)

-mike

At 02:16 PM 3/10/2003, you wrote:
>Hi,
>
>from a regular expressions point of view the syntax is:
>
>https?
>
>the ? before the s means that the s is optional,
>so in that case http and https a both matched.
>
>I have many doubts about the first rule you wrote,
>did you test them ?
>
>So If understand your needs,
>I'd write:
>
>RewriteCond %{HTTP_REFERER} !^https?://.*(sample_text|sample_numeric)$ [NC]
>
>
>
>:-) Andrea


---------------------------------------------------------------------
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] Need help with a RewriteCond Statement (http/https)

Posted by Mike <mi...@levrah.net>.
Hi Andrea.

Thanks. I'll test it here in a second. But wanted to answer your question. 
Yes. The pasted rule (with the exception of the literals "sample text" and 
"sample numeric") came from an actively used rule; one that's been in-use 
for quite a good long while. It may be that it's been used for so long that 
it's "technically out-dated" now? That's entirely possible...

Going to test out "...https?..." in a few...

Thanks!
-mike

At 02:16 PM 3/10/2003, you wrote:
>Hi,
>
>from a regular expressions point of view the syntax is:
>
>https?
>
>the ? before the s means that the s is optional,
>so in that case http and https a both matched.
>
>I have many doubts about the first rule you wrote,
>did you test them ?
>
>So If understand your needs,
>I'd write:
>
>RewriteCond %{HTTP_REFERER} !^https?://.*(sample_text|sample_numeric)$ [NC]
>
>
>
>:-) Andrea
>
>
>
>----- Original Message -----
>From: "Mike" <mi...@levrah.net>
>To: <us...@httpd.apache.org>
>Sent: Thursday, April 10, 2003 18:10
>Subject: [users@httpd] Need help with a RewriteCond Statement (http/https)
>
>
> > Hello.
> >
> > I have a question about a RewriteCond statement.
> >
> > I'm not sure how to do it, but I would like to change the following
> > one-liner - where the "http://" portion is located - to have it recognize
> > either or both non-ssl (http://) and ssl (https://).
> >
> > RewriteCond %{HTTP_REFERER}
> > !^($|(http://)?[^/]*(sample_text|sample_numeric)) [NC]
> >
> > I'm thinking it may be this, but I am unsure.
> >
> > RewriteCond %{HTTP_REFERER}
> > !^($|(http://|https://)?[^/]*(sample_text|sample_numeric)) [NC]
> >
> > Can someone help me with that please...
> >
> > Thanks.
> > -mike


---------------------------------------------------------------------
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] Need help with a RewriteCond Statement (http/https)

Posted by Andrea Rossignoli <so...@polin.it>.
Hi,

from a regular expressions point of view the syntax is:

https?

the ? before the s means that the s is optional,
so in that case http and https a both matched.

I have many doubts about the first rule you wrote,
did you test them ?

So If understand your needs,
I'd write:

RewriteCond %{HTTP_REFERER} !^https?://.*(sample_text|sample_numeric)$ [NC]



:-) Andrea



----- Original Message -----
From: "Mike" <mi...@levrah.net>
To: <us...@httpd.apache.org>
Sent: Thursday, April 10, 2003 18:10
Subject: [users@httpd] Need help with a RewriteCond Statement (http/https)


> Hello.
>
> I have a question about a RewriteCond statement.
>
> I'm not sure how to do it, but I would like to change the following
> one-liner - where the "http://" portion is located - to have it recognize
> either or both non-ssl (http://) and ssl (https://).
>
> RewriteCond %{HTTP_REFERER}
> !^($|(http://)?[^/]*(sample_text|sample_numeric)) [NC]
>
> I'm thinking it may be this, but I am unsure.
>
> RewriteCond %{HTTP_REFERER}
> !^($|(http://|https://)?[^/]*(sample_text|sample_numeric)) [NC]
>
> Can someone help me with that please...
>
> Thanks.
> -mike
>
>
> ---------------------------------------------------------------------
> 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


[users@httpd] Need help with a RewriteCond Statement (http/https)

Posted by Mike <mi...@levrah.net>.
Hello.

I have a question about a RewriteCond statement.

I'm not sure how to do it, but I would like to change the following 
one-liner - where the "http://" portion is located - to have it recognize 
either or both non-ssl (http://) and ssl (https://).

RewriteCond %{HTTP_REFERER} 
!^($|(http://)?[^/]*(sample_text|sample_numeric)) [NC]

I'm thinking it may be this, but I am unsure.

RewriteCond %{HTTP_REFERER} 
!^($|(http://|https://)?[^/]*(sample_text|sample_numeric)) [NC]

Can someone help me with that please...

Thanks.
-mike


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