Hi All,

I'm trying to figure out the right prescription for the following
scenario.  When my users are inside our firewall (a 192.168.x.x
network), I'd like them to be able to browse a particular site without
any authentication at all.  If they want to see the site from home, or
anywhere outside our firewall, I'd like them to have to authenticate.
The ability to even get to the site from inside and outside the
firewall is already working just fine.

Our current .htaccess file looks like so:

AuthType Basic
AuthName "Password Required"
AuthUserFile /path/to/userdb/users
Require valid-user

That, obviously, asks for a authentication every time.  I know I need
to add some form of

Allow from 192.168

into the virtualhost block in our apache config, but I can't seem to
get it right.

The part of the virtualhost block in the main apache config file
dealing with access currently looks like this:

<Directory "/path/to/htdocs">
        Options FollowSymLinks
        AllowOverride AuthConfig Limit
        Order allow,deny
        Allow from all
</Directory>

Can anyone lend a hand?  Thanks in advance,

Sean

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to