httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] block IP range with mod_rewrite
Date Wed, 18 Oct 2006 14:58:05 GMT
On 10/18/06, Norman Khine <norman@khine.net> wrote:

> The problem is that the if I add the:
>
>   RewriteMap    hosts-deny  txt:/home/user/apache/hosts.deny
>   RewriteCond   ${hosts-deny:%{REMOTE_HOST}|NOT-FOUND} !=NOT-FOUND [OR]
>   RewriteCond   ${hosts-deny:%{REMOTE_ADDR}|NOT-FOUND} !=NOT-FOUND
>   RewriteRule   ^/.*  -  [F]
>
> to my httpd.conf the browser just hangs and there is no entry in the logs.
>
> How can I have the RewriteRule check against the hosts.deny and if it is
> not there to run the second RewriteRule?

If things are hanging, then that is a different story.  Are you using
the most recent version of apache?  You should identify the hanging
process and get a backtrace as described in
http://httpd.apache.org/dev/debugging.html#backtrace

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


Mime
View raw message