Re: Options "per address"?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux