<Directory /var/www/>
   AuthUserFile /etc/apache2/user-passwd
   AuthType Basic
   AuthName "Restricted access"
   Require valid-user
   Order allow,deny
   Allow from 192.168.0
   Satisfy any
</Directory>

<Directory /var/www/public>
   Order allow,deny
   Allow from all
   Satisfy any
</Directory>