Koozali.org: home of the SME Server

Stupid htacces question

Laurent DINCLAUX

Stupid htacces question
« on: July 01, 2003, 08:40:30 AM »
I want to restrict acces to a specific folder in an ibay. This ibay is accessible from to whole internet with no restrictions. I want my folder to be acceded from the local network with no restriction and from the internet with a user authentification.

So:
- created a htpasswd file in the "supposed to be" protected directory
  contening my user and password doing:
  #htpasswd -c .htpasswd sms

- then created a .htaccess file contening:

  Options Indexes
  Options +Includes    
  AllowOverride All    
  order deny,allow    
  deny from all    
  allow from 127.0.0.1 192.168.0.0/255.255.255.0    

  AuthName "Espace privĂ©"
  AuthType Basic    
  AuthExternal pwauth    
  AuthUserFile .htpasswd
  require user sms
  Satisfy any

That doesn't popup the authentification window when accessing the directory either from internet nor from the local network.

Where am I wrong ?

Laurent DINCLAUX

Re: Stupid htacces question
« Reply #1 on: July 01, 2003, 09:05:34 AM »
found it:

order deny,allow
deny from all
allow from 127.0.0.1 192.168.0.0/255.255.255.0

AuthName "Espace privé"
AuthType Basic
AuthUserFile /home/e-smith/files/ibays/internet/html/fake_sms/.htpasswd
require user sms
satisfy any