httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
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 <> 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


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message