httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: [users@httpd] Options "per address"?
Date Sat, 25 Apr 2009 11:28:03 GMT
Anders Norrbring wrote:
> Is there a way to control options for a directory per address mask?
> 
> Like from 192.168.111.0/24, I can have 'Options All' but from all other
> addresses, 'Options None'..
> 
As far as I know, and strictly as you ask above, no (meaning not 
directly with standard Apache configuration options).
Now, depending on what /exactly/ you want to achieve, there may be a way 
to do what you want using SetEnvIf or mod_rewrite, but you'd have to be 
more specific about what you want to allow or deny depending on the address.
For example, if what you wanted to do would be to allow/disallow a 
directory index depending on the caller IP, I believe you could achieve 
that, not by playing with the Options, but by playing with the URL 
requesting the directory.

If you really want to intervene at the Options level, I think your best 
bet would be mod_perl.

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