ServerName gpass-demo.soutade.fr DocumentRoot /var/www/gpass DirectoryIndex index.php AuthType Basic AuthName "Private" AuthUserFile /private/_pwd/user Options +FollowSymlinks # Uncomment to remove password for internal network # # Require ip 192.168.0.0/24 Require valid-user # Options +FollowSymlinks Allow from all Satisfy Any RewriteEngine On RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !index.php RewriteRule ^/(.*)$ /users/$1/index.php [PT]