[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-users
Subject:    RE: [users@httpd] Can you restrict usage of .htaccess by IP?
From:       "Kevin Ingolfsland" <Kevin () Ingolfsland ! net>
Date:       2002-10-31 11:11:09
[Download RAW message or body]

Somebody didn't RTFM.  As Boyle pointed out the docs have a perfect example
of this (http://httpd.apache.org/docs/howto/auth.html#satisfy).  The key
directives to add to the existing basic authentication directives are...

allow from 192.68.2.
satisfy any

That should do it...

Kevin

-----Original Message-----
From: Elam Daly [mailto:elam@comcast.net]
Sent: Wednesday, October 30, 2002 10:15 AM
To: users@httpd.apache.org
Subject: [users@httpd] Can you restrict usage of .htaccess by IP?


Howdy all,

I have an Apache 1.3.22 server running behind a SpeedStream router.
The employees at this office use a web based calendering system located
in cgi-bin.

What  I would like to do is set up access so that anyone outside of the
local network would have to use an .htaccess file with user name and
password to access the calender, and anyone local, 192.68.2.*, to not
have to use it.

Now I realize I can redirect, allow and deny based on IP addresses, but
is this possible?

Thanks,
Elam


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




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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic