You can set up a reverse proxy and include access control like this:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
ProxyRequests Off
ServerName reverse-proxy.example.com
allow from 1.2.3.4 2.2.3.4
Thanks Pete,
I was using mod_rewrite in block. Apache works like a
reverse-proxy. Is there a way to insert more IP?
Thanks for your advise.
Michael
Messaggio originale
Da: p...@openstrike.co.uk
Data: 27-giu-2014 11.55
A: , "Michele De Santis"
Ogg: Re: [users@httpd] m
Hello Michael,
The obvious question is why are you using mod_rewrite for access
control in the first place? There are other, lighter modules whose
purpose actually is access control and which will allow you to use CIDR
notation etc.
I suggest you take a look at mod_authz_host instead.
Pete
--
O
Hi to all,
I'm working with apache 2.2.3-22 and I want to allow access a certain IP
address. These IP are consecutive
x.x.x.232
x.x.x.233
in my httpd.conf I'm using
RewriteCond %{REMOTE_ADDR} !x\.x\.x\.23[23]$ [NC]RewriteRule \.*$ - [F,NC]
or
RewriteCond %{REMOTE_ADDR} !x\.x\.x\.23[2-3]$ [NC]R