gPass/ressources/apache2_gpass.conf
2013-10-09 20:47:43 +02:00

24 lines
541 B
Plaintext

<VirtualHost *:80>
ServerName gpass-demo.soutade.fr
DocumentRoot /var/www/gpass
DirectoryIndex index.php
<Location />
AuthType Basic
AuthName "Private"
AuthUserFile /private/_pwd/user
Require valid-user
</Location>
<Location "/users/">
Allow from all
Satisfy Any
</Location>
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]
</VirtualHost>