httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stipe Tolj <>
Subject [REQ] combining "allow" and "require" statements
Date Thu, 06 Apr 2000 10:13:28 GMT

I'm trying to set up an .htaccess file which combines access to a
resource using the "allow" and "require" directives.

We would like to allow access to a machine from an internal LAN --
this would be done easily using the allow <IP-block> directive -- and
allow users from "outsite" by HTTP authentification -- using the
"require valid-user" directive.

Is there a way to combine these two directives so that apache acts as

1. if REMOTE_ADDR matches 192.168.1.x/ -> allow access
2. otherwise ask for HTTP authentification credentials
3. if valid-user -> allow access

Thanks in advance.

Best regards,

Stipe Tolj

Stipe Tolj <>

Infomatec-PWI GmbH -- "Wherever you go - we are there!"

Münsterstraße 246     Telefon: ++49-211-74845-100
40470 Düsseldorf      Telefax: ++49-211-74845-299

View raw message