D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] .htaccess two allows?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Adrian Midgley wrote:
> I want to allow:-
>
> 1)  anyone from a range of IP addresses
>
> 2)  anyone with a user ID/password who comes from any IP address
>
> access to a directory in teh website.
>
> Just putting allow 123.456.789.123 and then the usual
passwording stuff in
> didn't work.  SHould it, so I need to look for my mistake, or
do I need to
> have two stanzas or something?

See mod_access documentation

I think you want "satisfy any" directive if you have both an
"allow" and a "require".

Consider forcing the authenticate on the "trusted" network, if
they already belong to one consistent authentication scheme
(such as NT domain or similar) you might be able to do this
without requiring manual authentication when on the "trusted"
network. Better yet you don't muddle your layers as much, so no
reconfiguring Apache because you added extra machines to the
trusted network.

> obLinux: it is on an Apache on Linux server.

I think it'll work even if it isn't Linux ;-)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+JfcXGFXfHI9FVgYRAkHBAKDU+AIZkcQHHmPcDIOjOkY0OnOMkACfRTg8
8xuq1QXcPBZB7l+32OhUQAE=
=Rpjb
-----END PGP SIGNATURE-----

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly