Forum Moderators: phranque
-Access for the internal networks to an intranet page without entering a password
-Any visitor from a ip not inside one of the local networks should be forced to enter a password
my htaccess file
-------
AuthUserFile /var/www/localhost/htdocs/test/.htpasswd
AuthGroupFile /dev/null
AuthName "Intranet"
AuthType Basic
#<limit GET POST>
satisfy any
require valid-user
order deny,allow
deny from all
allow from 192.168.2.0/24
#allow from 192.168.4.0/24
#allow from 192.168.5.0/24
#</limit>
----------
this file seems to work on my notebook (running gentoo linux / apache2) .......but not on the os x server ....the entry "allow from 192.168.2.0/24" gives every ip access to the pages
Maybe you could help me to recognize my mistakes :) thx